You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an error in the library right inside the onTouchEvent method. It always jumps into the else-clause, because of this the Button is always tinted with the darkened color.
Fix:
Change return super.onTouchEvent(event); to return true. This notifies the system that the event was handled and thus the method can retrieve the next Action. (Like MotionEvent.ActionUp)
The text was updated successfully, but these errors were encountered:
Additional change that's needed:
Inside the if (event.getAction() == MotionEvent.ACTION_UP) clause, performClick() must be called. Otherwise setting an onClickListener won't work (onClick won't be called).
There's an error in the library right inside the
onTouchEvent
method. It always jumps into the else-clause, because of this the Button is always tinted with the darkened color.Fix:
Change
return super.onTouchEvent(event);
toreturn true
. This notifies the system that the event was handled and thus the method can retrieve the next Action. (LikeMotionEvent.ActionUp
)The text was updated successfully, but these errors were encountered: