Amazon FireTV focus fixes (#635)

* Fix quick search button focus

* Switch profile button focus

* Cast & Recommendations focus

* Player: Profiles settings focus

* Player: Subtitles encoding settings focus

* profile selection: card item focus

* Search history item selectable & deleteable

* Search: search filter button next focus fix
This commit is contained in:
KingLucius 2023-09-28 13:22:51 +03:00 committed by GitHub
parent 194678c419
commit 16c2290090
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 4 deletions

View file

@ -34,7 +34,7 @@
android:id="@+id/actor_image" android:id="@+id/actor_image"
android:layout_width="match_parent" android:layout_width="match_parent"
android:focusable="true"
android:layout_height="match_parent" android:layout_height="match_parent"
android:contentDescription="@string/episode_poster_img_des" android:contentDescription="@string/episode_poster_img_des"
android:scaleType="centerCrop" android:scaleType="centerCrop"

View file

@ -55,6 +55,7 @@
android:layout_gravity="end" android:layout_gravity="end"
android:background="@drawable/player_button_tv_attr_no_bg" android:background="@drawable/player_button_tv_attr_no_bg"
android:contentDescription="@string/search" android:contentDescription="@string/search"
android:focusable="true"
android:nextFocusLeft="@id/home_preview_change_api" android:nextFocusLeft="@id/home_preview_change_api"
android:nextFocusRight="@id/home_preview_switch_account" android:nextFocusRight="@id/home_preview_switch_account"
android:nextFocusDown="@id/home_preview_info_btt" android:nextFocusDown="@id/home_preview_info_btt"
@ -70,6 +71,7 @@
android:layout_gravity="end" android:layout_gravity="end"
android:background="@drawable/player_button_tv_attr_no_bg" android:background="@drawable/player_button_tv_attr_no_bg"
android:contentDescription="@string/account" android:contentDescription="@string/account"
android:focusable="true"
android:nextFocusLeft="@id/home_preview_search_button" android:nextFocusLeft="@id/home_preview_search_button"
android:nextFocusRight="@id/home_preview_switch_account" android:nextFocusRight="@id/home_preview_switch_account"
android:nextFocusDown="@id/home_preview_info_btt" android:nextFocusDown="@id/home_preview_info_btt"

View file

@ -84,7 +84,7 @@
android:nextFocusLeft="@id/main_search" android:nextFocusLeft="@id/main_search"
android:nextFocusRight="@id/main_search" android:nextFocusRight="@id/main_search"
android:nextFocusUp="@id/nav_rail_view" android:nextFocusUp="@id/nav_rail_view"
android:nextFocusDown="@id/search_autofit_results" android:nextFocusDown="@id/tvtypes_chips_scroll"
android:src="@drawable/ic_baseline_tune_24" android:src="@drawable/ic_baseline_tune_24"
app:tint="?attr/textColor" /> app:tint="?attr/textColor" />
</FrameLayout> </FrameLayout>

View file

@ -10,6 +10,7 @@
android:id="@+id/card_view" android:id="@+id/card_view"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="0dp" android:layout_height="0dp"
android:focusable="true"
app:layout_constraintDimensionRatio="1" app:layout_constraintDimensionRatio="1"
android:layout_marginStart="10dp" android:layout_marginStart="10dp"
android:animateLayoutChanges="true" android:animateLayoutChanges="true"

View file

@ -27,6 +27,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_rowWeight="1" android:layout_rowWeight="1"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:focusable="true"
android:foreground="@drawable/outline_drawable_forced" android:foreground="@drawable/outline_drawable_forced"
android:gravity="center_vertical" android:gravity="center_vertical"
android:orientation="horizontal"> android:orientation="horizontal">
@ -66,6 +67,7 @@
android:layout_rowWeight="1" android:layout_rowWeight="1"
android:background="?attr/primaryBlackBackground" android:background="?attr/primaryBlackBackground"
android:listSelector="@drawable/outline_drawable_forced" android:listSelector="@drawable/outline_drawable_forced"
android:nextFocusUp="@id/profiles_click_settings"
android:nextFocusRight="@id/sort_subtitles" android:nextFocusRight="@id/sort_subtitles"
android:nextFocusDown="@id/apply_btt" android:nextFocusDown="@id/apply_btt"
android:requiresFadingEdge="vertical" android:requiresFadingEdge="vertical"
@ -94,6 +96,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_rowWeight="1" android:layout_rowWeight="1"
android:layout_marginTop="10dp" android:layout_marginTop="10dp"
android:focusable="true"
android:foreground="@drawable/outline_drawable_forced" android:foreground="@drawable/outline_drawable_forced"
android:orientation="horizontal" android:orientation="horizontal"
android:paddingTop="10dp" android:paddingTop="10dp"
@ -139,6 +142,7 @@
android:layout_rowWeight="1" android:layout_rowWeight="1"
android:background="?attr/primaryBlackBackground" android:background="?attr/primaryBlackBackground"
android:listSelector="@drawable/outline_drawable_forced" android:listSelector="@drawable/outline_drawable_forced"
android:nextFocusUp="@id/subtitles_click_settings"
android:nextFocusLeft="@id/sort_providers" android:nextFocusLeft="@id/sort_providers"
android:nextFocusRight="@id/apply_btt" android:nextFocusRight="@id/apply_btt"
android:nextFocusDown="@id/apply_btt" android:nextFocusDown="@id/apply_btt"

View file

@ -6,7 +6,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/outline_drawable_less" android:background="@drawable/outline_drawable_less"
android:focusable="true"
android:nextFocusRight="@id/home_history_remove" android:nextFocusRight="@id/home_history_remove"
android:orientation="horizontal"> android:orientation="horizontal">
<!-- android:foreground="?android:attr/selectableItemBackgroundBorderless" <!-- android:foreground="?android:attr/selectableItemBackgroundBorderless"
@ -30,7 +30,7 @@
android:layout_gravity="center_vertical|end" android:layout_gravity="center_vertical|end"
android:background="@drawable/outline_drawable_less" android:background="@drawable/outline_drawable_less"
android:focusable="true"
android:nextFocusLeft="@id/home_history_tab" android:nextFocusLeft="@id/home_history_tab"
android:padding="10dp" android:padding="10dp"
android:src="@drawable/ic_baseline_close_24" android:src="@drawable/ic_baseline_close_24"