You can do something easier. Add this to the LinearLayout (or any other layout that is the root):
<LinearLayout
...
android:focusable="true"
android:focusableInTouchMode="true"
...
/>
You can do something easier. Add this to the LinearLayout (or any other layout that is the root):
<LinearLayout
...
android:focusable="true"
android:focusableInTouchMode="true"
...
/>