From 4f54bf3ae47b4946e506521c241870785b110501 Mon Sep 17 00:00:00 2001
From: Blatzar <46196380+Blatzar@users.noreply.github.com>
Date: Fri, 9 Dec 2022 00:37:59 +0100
Subject: [PATCH] Added outlines to more things to increase accessibility on
Android TV
---
.../res/color/white_transparent_toggle.xml | 5 +
.../layout/player_select_source_and_subs.xml | 215 +++++++++---------
.../main/res/layout/search_history_item.xml | 65 +++---
.../res/layout/sort_bottom_single_choice.xml | 8 +-
app/src/main/res/values/styles.xml | 9 +-
5 files changed, 157 insertions(+), 145 deletions(-)
create mode 100644 app/src/main/res/color/white_transparent_toggle.xml
diff --git a/app/src/main/res/color/white_transparent_toggle.xml b/app/src/main/res/color/white_transparent_toggle.xml
new file mode 100644
index 00000000..a94501bd
--- /dev/null
+++ b/app/src/main/res/color/white_transparent_toggle.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/player_select_source_and_subs.xml b/app/src/main/res/layout/player_select_source_and_subs.xml
index 1efa00be..369f6776 100644
--- a/app/src/main/res/layout/player_select_source_and_subs.xml
+++ b/app/src/main/res/layout/player_select_source_and_subs.xml
@@ -1,148 +1,149 @@
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@null"
+ android:orientation="vertical">
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginBottom="60dp"
+ android:baselineAligned="false"
+ android:orientation="horizontal">
+ android:id="@+id/sort_sources_holder"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="50"
+ android:orientation="vertical">
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_rowWeight="1"
+ android:layout_marginTop="10dp"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart"
+ android:paddingTop="10dp"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:paddingBottom="10dp"
+ android:text="@string/pick_source"
+ android:textColor="?attr/textColor"
+ android:textSize="20sp"
+ android:textStyle="bold" />
+ android:id="@+id/sort_providers"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_rowWeight="1"
+ android:background="?attr/primaryBlackBackground"
+ android:listSelector="@drawable/outline_drawable_less"
+ android:nextFocusLeft="@id/sort_subtitles"
+ android:nextFocusRight="@id/apply_btt"
+ android:requiresFadingEdge="vertical"
+ tools:listitem="@layout/sort_bottom_single_choice" />
+ android:id="@+id/sort_subtitles_holder"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="50"
+ android:orientation="vertical">
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ tools:ignore="UseCompoundDrawables">
+ android:id="@+id/subtitles_click_settings"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_rowWeight="1"
+ android:layout_marginTop="10dp"
+ android:background="@drawable/outline_drawable_less"
+ android:foreground="?attr/selectableItemBackgroundBorderless"
+ android:orientation="horizontal"
+ android:paddingTop="10dp"
+ android:paddingBottom="10dp">
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:text="@string/pick_subtitle"
+ android:textColor="?attr/textColor"
+ android:textSize="20sp"
+ android:textStyle="bold" />
+ android:id="@+id/subtitles_encoding_format"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:gravity="center"
+ android:textColor="?attr/textColor"
+ android:textSize="15sp"
+ tools:text="Thai (TIS 620-2533/ISO 8859-11)" />
+ android:contentDescription="@string/home_change_provider_img_des"
+ android:src="@drawable/ic_outline_settings_24"
+ android:visibility="gone" />
+ android:id="@+id/sort_subtitles"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_rowWeight="1"
+ android:background="?attr/primaryBlackBackground"
+ android:listSelector="@drawable/outline_drawable_less"
+ android:nextFocusLeft="@id/sort_providers"
+ android:nextFocusRight="@id/cancel_btt"
+ android:requiresFadingEdge="vertical"
+ tools:listfooter="@layout/sort_bottom_footer_add_choice"
+ tools:listitem="@layout/sort_bottom_single_choice" />
+ android:id="@+id/apply_btt_holder"
+ android:layout_width="match_parent"
+ android:layout_height="60dp"
+ android:layout_gravity="bottom"
+ android:layout_marginTop="-60dp"
+ android:gravity="bottom|end"
+ android:orientation="horizontal">
+ android:id="@+id/apply_btt"
+ style="@style/WhiteButton"
+ android:layout_width="wrap_content"
+ android:layout_gravity="center_vertical|end"
+ android:text="@string/sort_apply" />
+ android:id="@+id/cancel_btt"
+ style="@style/BlackButton"
+ android:layout_width="wrap_content"
+ android:layout_gravity="center_vertical|end"
+ android:text="@string/sort_cancel" />
diff --git a/app/src/main/res/layout/search_history_item.xml b/app/src/main/res/layout/search_history_item.xml
index 34cd59bc..ef441234 100644
--- a/app/src/main/res/layout/search_history_item.xml
+++ b/app/src/main/res/layout/search_history_item.xml
@@ -1,39 +1,42 @@
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/home_history_tab"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/outline_drawable_less"
+ android:foreground="?android:attr/selectableItemBackgroundBorderless"
+ android:nextFocusRight="@id/home_history_remove"
+ android:orientation="horizontal">
+ android:id="@+id/home_history_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="10dp"
+ android:textColor="?attr/textColor"
+ android:textSize="18sp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ tools:text="Hello World" />
+ android:background="@drawable/outline_drawable_less"
+ android:foreground="?android:attr/selectableItemBackgroundBorderless"
+
+ android:nextFocusLeft="@id/home_history_tab"
+ android:padding="10dp"
+ android:src="@drawable/ic_baseline_close_24"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:tint="?attr/white"
+ tools:ignore="ContentDescription" />
diff --git a/app/src/main/res/layout/sort_bottom_single_choice.xml b/app/src/main/res/layout/sort_bottom_single_choice.xml
index 6e81cf2e..3d0a70ff 100644
--- a/app/src/main/res/layout/sort_bottom_single_choice.xml
+++ b/app/src/main/res/layout/sort_bottom_single_choice.xml
@@ -14,7 +14,7 @@
-->
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@android:id/text1"
+ style="@style/CheckLabel"
+ tools:text="hello" />
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 4fde7ae8..12da27de 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -70,6 +70,8 @@
-
+