0
画廊捕捉轨迹球/ dpad导航水平。画廊捕捉轨迹球导航
下面是一个例子布局按钮上的画廊两侧:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
xmlns:android="http://schemas.android.com/apk/res/android">
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Gallery
android:layout_height="match_parent"
android:id="@+id/gallery"
android:layout_width="match_parent"
android:layout_weight="1" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
当您导航到你无法逃避到两边的按钮轨迹球画廊。我试图在画廊中添加android:nextFocusLeft =“@ id/button”。我也尝试将其添加到画廊的适配器中的第一个视图。
有没有办法解决这个问题?