Tab快速选择
This commit is contained in:
9 files changed
+186
-42
No files matched your search
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
@@ -67,14 +66,18 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/show_bookshelf_fast_scroller" />
|
||||
|
||||
<com.google.android.material.materialswitch.MaterialSwitch
|
||||
android:id="@+id/sw_show_bookshelf_tab_menu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/show_bookshelf_tab_menu" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/layout_refresh_limit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="2dp"
|
||||
android:orientation="horizontal"
|
||||
android:clickable="true"
|
||||
android:background="?attr/selectableItemBackground">
|
||||
android:clickable="true">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
@@ -84,10 +87,17 @@
|
||||
android:paddingVertical="16dp"
|
||||
android:text="@string/bookshelf_update_limit" />
|
||||
|
||||
<TextView
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/tv_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:minWidth="0dp"
|
||||
android:minHeight="0dp"
|
||||
android:paddingHorizontal="0dp"
|
||||
android:paddingVertical="8dp"
|
||||
style="@style/Widget.Material3Expressive.Button.OutlinedButton"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -33,12 +33,49 @@
|
||||
|
||||
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tab_layout"
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_tab"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/transparent"
|
||||
android:paddingHorizontal="16dp"/>
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="10dp">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:clipToPadding="false"
|
||||
android:clipChildren="false">
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tab_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/transparent"
|
||||
app:tabMode="scrollable"
|
||||
android:scrollbars="none" />
|
||||
|
||||
<View
|
||||
android:id="@+id/tab_right_fade"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="end"
|
||||
android:background="@drawable/tab_right_fade" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/btn_expand_tabs"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:checkable="true"
|
||||
app:iconGravity="textStart"
|
||||
style="@style/Widget.Material3Expressive.Button.IconButton.Outlined"
|
||||
app:icon="@drawable/m3_split_button_chevron_avd" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
|
||||
@@ -1348,4 +1348,5 @@
|
||||
<string name="sure_cache_book">是否确认开始缓存?</string>
|
||||
<string name="replace_purify_badge">计数替换净化</string>
|
||||
<string name="page_anim_fade">渐变</string>
|
||||
<string name="show_bookshelf_tab_menu">显示更多分组按钮</string>
|
||||
</resources>
|
||||
@@ -1349,4 +1349,5 @@
|
||||
<string name="sure_cache_book">是否确认开始缓存?</string>
|
||||
<string name="replace_purify_badge">计数替换净化</string>
|
||||
<string name="page_anim_fade">渐变</string>
|
||||
<string name="show_bookshelf_tab_menu">显示更多分组按钮</string>
|
||||
</resources>
|
||||
Reference in new issue
Block a user