一个新的书架样式 #285
This commit is contained in:
7 files changed
+220
-5
No files matched your search
@@ -93,7 +93,7 @@
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingVertical="8dp"
|
||||
android:text="@string/group_style"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
@@ -103,7 +103,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:checkableBehavior="single"
|
||||
android:paddingBottom="8dp"
|
||||
app:selectionRequired="true"
|
||||
app:singleSelection="true" />
|
||||
|
||||
@@ -111,6 +110,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:paddingVertical="8dp"
|
||||
android:text="@string/sortview"
|
||||
android:textSize="14sp"
|
||||
android:textStyle="bold" />
|
||||
@@ -119,7 +119,6 @@
|
||||
android:id="@+id/chip_group_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:chipSpacingVertical="0dp"
|
||||
android:checkableBehavior="single"
|
||||
app:selectionRequired="true"
|
||||
app:singleSelection="true">
|
||||
@@ -191,6 +190,7 @@
|
||||
android:id="@+id/chipGroupOrder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginVertical="8dp"
|
||||
app:selectionRequired="true"
|
||||
app:singleSelection="true">
|
||||
|
||||
@@ -218,7 +218,6 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:chipSpacingVertical="0dp"
|
||||
app:selectionRequired="true"
|
||||
app:singleSelection="true" />
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.material.appbar.AppBarLayout
|
||||
android:id="@+id/title_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/transparent"
|
||||
android:fitsSystemWindows="true"
|
||||
app:liftOnScroll="false"
|
||||
android:stateListAnimator="@null">
|
||||
|
||||
<com.google.android.material.appbar.MaterialToolbar
|
||||
android:id="@+id/top_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
app:title="@string/bookshelf"
|
||||
app:layout_collapseMode="pin" />
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tab_layout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:tabMode="fixed"
|
||||
android:background="@android:color/transparent"
|
||||
style="@style/Widget.Material3.TabLayout" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
||||
<io.legado.app.ui.widget.NestedScrollableHost
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||
<androidx.viewpager2.widget.ViewPager2
|
||||
android:id="@+id/view_pager_bookshelf"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingHorizontal="8dp" />
|
||||
</io.legado.app.ui.widget.NestedScrollableHost>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@@ -11,6 +11,7 @@
|
||||
<item>标签</item>
|
||||
<item>文件夹</item>
|
||||
<item>隐藏标签</item>
|
||||
<item>材料标签</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="text_suffix">
|
||||
@@ -183,7 +184,7 @@
|
||||
|
||||
<string-array name="title_chapter_mode">
|
||||
<item>不显示标题</item>
|
||||
<item>不显示</item>
|
||||
<item>不显示章节</item>
|
||||
<item>Disable title and chapter display</item>
|
||||
</string-array>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<item>Tab</item>
|
||||
<item>Folder</item>
|
||||
<item>Hide Tab</item>
|
||||
<item>Material Tab</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="book_sort">
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
<style name="Widget.MyApp.Chip.Assist" parent="Widget.Material3.Chip.Assist">
|
||||
<item name="chipBackgroundColor">@color/chip_background_selector</item>
|
||||
<item name="chipStrokeColor">@color/chip_stroke_selector</item>
|
||||
<item name="chipMinTouchTargetSize">0dp</item>
|
||||
</style>
|
||||
|
||||
<style name="NoBackgroundNavi" parent="ThemeOverlay.Material3.Toolbar.CircleNavigationButton">
|
||||
|
||||
Reference in new issue
Block a user