Fix D-pad navigation on android 8-

This commit is contained in:
vvb2060 2022-06-01 04:08:37 +08:00 committed by John Wu
parent edfd4dcddf
commit 7ae3cd1c43
2 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,7 @@
android:enabled="@{viewModel.grantEnabled}" android:enabled="@{viewModel.grantEnabled}"
android:text="@string/grant" /> android:text="@string/grant" />
<requestFocus />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@ -35,6 +35,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="?selectableItemBackground" android:background="?selectableItemBackground"
android:clickable="true"
android:focusable="true"
android:nextFocusRight="@id/hide_expand_icon" android:nextFocusRight="@id/hide_expand_icon"
android:onClick="@{item::toggleExpand}"> android:onClick="@{item::toggleExpand}">