feat(TV UI): Account switch focus fix (#1112)

This commit is contained in:
KingLucius 2024-06-01 19:16:42 +03:00 committed by GitHub
parent dff56026de
commit b87fdfbf85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 35 additions and 30 deletions

View file

@ -64,12 +64,14 @@
<TextView <TextView
android:id="@+id/account_switch_account" android:id="@+id/account_switch_account"
android:text="@string/switch_account" android:text="@string/switch_account"
style="@style/SettingsItem" /> style="@style/SettingsItem"
android:focusable="true"/>
<TextView <TextView
android:id="@+id/account_logout" android:id="@+id/account_logout"
android:text="@string/logout" android:text="@string/logout"
style="@style/SettingsItem"> style="@style/SettingsItem"
android:focusable="true">
<requestFocus /> <requestFocus />
</TextView> </TextView>

View file

@ -4,7 +4,8 @@
android:foreground="?android:attr/selectableItemBackgroundBorderless" android:foreground="?android:attr/selectableItemBackgroundBorderless"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_width="match_parent"> android:layout_width="match_parent"
android:focusable="true">
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/account_profile_picture_holder" android:id="@+id/account_profile_picture_holder"

View file

@ -13,12 +13,14 @@
tools:listitem="@layout/account_single" tools:listitem="@layout/account_single"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_rowWeight="1" android:layout_rowWeight="1"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:focusable="true"/>
<TextView <TextView
android:id="@+id/account_add" android:id="@+id/account_add"
android:text="@string/add_account" android:text="@string/add_account"
style="@style/SettingsItem"> style="@style/SettingsItem"
android:focusable="true">
<requestFocus /> <requestFocus />
</TextView> </TextView>