1.解决首页按方向键光标移动错误定位问题

This commit is contained in:
2026-03-06 10:16:46 +08:00
parent 42854c9555
commit fafc03993d
9 changed files with 728 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
android:background="@drawable/bg">
<com.ik.mboxlauncher.view.CustomRecyclerView
<com.ik.mboxlauncher.view.TvRecyclerView
android:id="@+id/grid_coustom_apps"
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/app_info_add_bg">
<com.ik.mboxlauncher.view.CustomRecyclerView
<com.ik.mboxlauncher.view.TvRecyclerView
android:id="@+id/grid_coustom_apps"
android:layout_width="wrap_content"
android:layout_height="match_parent"

View File

@@ -4,7 +4,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/app_info_add_bg">
<com.ik.mboxlauncher.view.CustomRecyclerView
<com.ik.mboxlauncher.view.TvRecyclerView
android:id="@+id/grid_coustom_apps"
android:layout_width="wrap_content"
android:layout_height="match_parent"

View File

@@ -8,7 +8,7 @@
android:background="@drawable/bg">
<com.ik.mboxlauncher.view.CustomRecyclerView
<com.ik.mboxlauncher.view.TvRecyclerView
android:id="@+id/grid_coustom_apps"
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<declare-styleable name="MultiView">
<attr name="multiViewTitle" format="reference"/>
<attr name="multiViewImage" format="reference"/>
@@ -12,4 +12,16 @@
<attr name="adMultiViewTitle" format="reference"/>
<attr name="adMultiViewImage" format="reference"/>
</declare-styleable>
<declare-styleable name="TvRecyclerView">
<attr name="android:orientation" tools:ignore="ResourceName"/>
<attr name="tv_layoutManager" format="string"/>
<attr name="tv_numColumns" format="integer"/>
<attr name="tv_numRows" format="integer"/>
<attr name="tv_selectedItemCentered" format="boolean" />
<attr name="tv_loadMoreBeforehandCount" format="integer" />
<attr name="tv_selectedItemOffsetStart" format="dimension" />
<attr name="tv_selectedItemOffsetEnd" format="dimension" />
</declare-styleable>
</resources>