Fix subtitle action focus

pull/586/head
FongMi 2 years ago
parent fa604bcb33
commit 3b33359628
  1. 2
      app/src/leanback/res/drawable/ic_subtitle_down.xml
  2. 2
      app/src/leanback/res/drawable/ic_subtitle_large.xml
  3. 2
      app/src/leanback/res/drawable/ic_subtitle_reset.xml
  4. 2
      app/src/leanback/res/drawable/ic_subtitle_small.xml
  5. 2
      app/src/leanback/res/drawable/ic_subtitle_up.xml
  6. 4
      app/src/leanback/res/drawable/selector_subtitle.xml
  7. 9
      app/src/leanback/res/drawable/shape_subtitle.xml
  8. 9
      app/src/leanback/res/drawable/shape_subtitle_focused.xml
  9. 10
      app/src/leanback/res/layout/dialog_subtitle.xml

@ -1,7 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="@color/grey_600"
android:tint="@color/white"
android:viewportWidth="960"
android:viewportHeight="960">
<path

@ -1,7 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="@color/grey_600"
android:tint="@color/white"
android:viewportWidth="960"
android:viewportHeight="960">
<path

@ -1,7 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="@color/grey_600"
android:tint="@color/white"
android:viewportWidth="960"
android:viewportHeight="960">
<path

@ -1,7 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="@color/grey_600"
android:tint="@color/white"
android:viewportWidth="960"
android:viewportHeight="960">
<path

@ -1,7 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="@color/grey_600"
android:tint="@color/white"
android:viewportWidth="960"
android:viewportHeight="960">
<path

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/shape_subtitle_focused" android:state_focused="true" />
</selector>

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/grey_800" />
<corners android:radius="4dp" />
</shape>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<stroke
android:width="1.5dp"
android:color="@color/white" />
</shape>

@ -9,7 +9,7 @@
android:id="@+id/large"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:background="@drawable/selector_subtitle"
android:focusable="true"
android:padding="8dp"
android:src="@drawable/ic_subtitle_large" />
@ -18,7 +18,7 @@
android:id="@+id/small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:background="@drawable/selector_subtitle"
android:focusable="true"
android:padding="8dp"
android:src="@drawable/ic_subtitle_small" />
@ -27,7 +27,7 @@
android:id="@+id/up"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:background="@drawable/selector_subtitle"
android:focusable="true"
android:padding="8dp"
android:src="@drawable/ic_subtitle_up" />
@ -36,7 +36,7 @@
android:id="@+id/down"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:background="@drawable/selector_subtitle"
android:focusable="true"
android:padding="8dp"
android:src="@drawable/ic_subtitle_down" />
@ -45,7 +45,7 @@
android:id="@+id/reset"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
android:background="@drawable/selector_subtitle"
android:focusable="true"
android:padding="8dp"
android:src="@drawable/ic_subtitle_reset" />

Loading…
Cancel
Save