Code example for View

Methods: findViewByIdsetHoveredsetPressed

0
    protected void drawableStateChanged() { 
        super.drawableStateChanged(); 
 
        if (mView == null) {
            View parent = (View) getParent();
            mView = parent.findViewById(mViewId);
        } 
        mView.setPressed(isPressed());
        mView.setHovered(isHovered());
    } 
 
    @Override 
    public boolean onHoverEvent(MotionEvent event) {
        return false; 
    } 
} 
Experience pair programming with AI  Get Codota for Java