Add pressed for subtitle action

pull/586/head
FongMi 1 year ago
parent 3b33359628
commit 3598587076
  1. 2
      app/build.gradle
  2. 1
      app/src/leanback/res/drawable/selector_subtitle.xml
  3. 11
      app/src/leanback/res/drawable/shape_subtitle_pressed.xml

@ -14,7 +14,7 @@ android {
//noinspection ExpiredTargetSdkVersion
targetSdk 28
versionCode 258
versionName "0905"
versionName "0906"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]

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

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