Merge pull request #2061 from nEdAy/feature/add-highlight-focus-item-on-tv

新增 高亮焦点 为 Android TV 模式(首页- 书架/发现/订阅/我的);
pull/2063/head
kunfei 2 years ago committed by GitHub
commit 7c93e8bfc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/src/main/res/drawable/bg_item_focused_on_tv.xml
  2. 3
      app/src/main/res/drawable/bg_prefs_color.xml
  3. 1
      app/src/main/res/layout/item_bookshelf_grid.xml
  4. 1
      app/src/main/res/layout/item_bookshelf_list.xml
  5. 4
      app/src/main/res/layout/item_find_book.xml
  6. 4
      app/src/main/res/layout/item_rss.xml

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

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

@ -7,6 +7,7 @@
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:background="@drawable/bg_item_focused_on_tv"
tools:ignore="UnusedAttribute">

@ -7,6 +7,7 @@
android:layout_height="wrap_content"
android:clickable="true"
android:focusable="true"
android:background="@drawable/bg_item_focused_on_tv"
tools:ignore="UnusedAttribute">
<io.legado.app.ui.widget.image.CoverImageView

@ -5,7 +5,9 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
android:orientation="vertical"
android:focusable="true"
android:background="@drawable/bg_item_focused_on_tv">
<LinearLayout
android:id="@+id/ll_title"

@ -4,7 +4,9 @@
xmlns:tools="http://schemas.android.com/tools"
android:padding="16dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:focusable="true"
android:background="@drawable/bg_item_focused_on_tv">
<io.legado.app.ui.widget.image.FilletImageView
android:id="@+id/iv_icon"

Loading…
Cancel
Save