Eine App hat folgende in einem Layout:Wie entferne ich ScrollView auf Android mit einer Fernbedienung?
<LinearLayout
android:id="@+id/linearLayoutContents"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:focusable="true"
android:minWidth="120dip"
android:focusableInTouchMode="true"
android:text="@string/set_up">
<requestFocus />
</Button>
...
</LinearLayout>
<ScrollView
android:id="@+id/scrollViewNewDevice"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1">
//Some EditText and AutoCompleteTextView controls
</ScrollView>
</LinearLayout>
Sie können sehen, dass die Schaltfläche intially den Fokus erhält. Sobald der Fokus in die ScrollView verschoben wurde, kann er mit einer Fernbedienung nicht mehr entfernt werden. Kann jemand einen Tipp geben, wie man mit einer Fernbedienung den Fokus aus einer ScrollView herausholt?