Android Button always takes two clicks to fire onClick()
问题 I have a RelativeLayout inside of a ScrollView that contains a Button and some TextViews and EditTexts. In my xml layout file, I am defining android:onClick but it always takes two clicks of the button to fire the event. The button always gets the focus on the first click and fires the onClick event on the second click. I have tried setting focusable and focusableInTouchMode both to false but the behavior doesn't change. Here is my layout file: <ScrollView xmlns:android="http://schemas