I have to click the button twice for it to work

My problem was the Button XML defining:

android:focusableInTouchMode="true"

Remove this attribute and the button doesn’t require being touched twice. It appears as though the first touch is consumed to assign focus on the button and the second then triggers the OnClickListener.

Note that the Button works without issue with the android:focusable="true" attribute.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)