Back to project page customhellochartdemo.
The source code is released under:
Apache License
If you think the Android project customhellochartdemo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package lecho.lib.hellocharts.view.hack; /*www . j a v a 2 s . c o m*/ import android.content.Context; import android.support.v4.widget.DrawerLayout; import android.util.AttributeSet; import android.view.MotionEvent; /** * Hacky fix for issue with DrawerLayout https://github.com/chrisbanes/PhotoView/issues/72 * */ public class HackyDrawerLayout extends DrawerLayout { public HackyDrawerLayout(Context context) { super(context); } public HackyDrawerLayout(Context context, AttributeSet attrs) { super(context, attrs); } public HackyDrawerLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { try { return super.onInterceptTouchEvent(ev); } catch (Exception e) { e.printStackTrace(); return false; } } }