Code example for DrawerLayout

0
    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 (Throwable t) {
            t.printStackTrace();
            return false; 
        } 
Stop searching for code, let great code find you!  Add Codota to your java IDE