mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
feat(TV UI): Account switch focus fix (#1112)
This commit is contained in:
parent
dff56026de
commit
b87fdfbf85
3 changed files with 35 additions and 30 deletions
|
@ -62,14 +62,16 @@
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<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>
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
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"
|
||||||
|
@ -15,16 +16,16 @@
|
||||||
android:layout_height="30dp">
|
android:layout_height="30dp">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/account_profile_picture"
|
android:id="@+id/account_profile_picture"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription" />
|
||||||
</androidx.cardview.widget.CardView>
|
</androidx.cardview.widget.CardView>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:foreground="@null"
|
android:foreground="@null"
|
||||||
android:id="@+id/account_name"
|
android:id="@+id/account_name"
|
||||||
tools:text="Account 1"
|
tools:text="Account 1"
|
||||||
style="@style/SettingsItem" />
|
style="@style/SettingsItem" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -7,18 +7,20 @@
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/account_list"
|
android:id="@+id/account_list"
|
||||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||||
android:background="?attr/primaryBlackBackground"
|
android:background="?attr/primaryBlackBackground"
|
||||||
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>
|
||||||
|
|
Loading…
Reference in a new issue