Code example for View

Methods: getDrawableState

0
    @Override 
    public void draw(Canvas canvas) {
        super.draw(canvas);
        final int off = (int) (getHeight() - mHandleBarHeight - getPaddingBottom());
        canvas.translate(0, off);
        mHandleBar.setState(mHandleView.getDrawableState());
        mHandleBar.draw(canvas);
        canvas.translate(0, -off);
    } 
 
    @Override 
    public boolean onTouchEvent(MotionEvent event) {
        if (DEBUG_GESTURES) {
            if (event.getActionMasked() != MotionEvent.ACTION_MOVE) {
                EventLog.writeEvent(EventLogTags.SYSUI_QUICKPANEL_TOUCH,
                       event.getActionMasked(), (int) event.getX(), (int) event.getY());
            } 
        } 
        return super.onTouchEvent(event);
    } 
Experience pair programming with AI  Get Codota for Java