增加平板界面配置,更新主页面
This commit is contained in:
13 files changed
+180
-54
No files matched your search
@@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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.navigationrail.NavigationRailView
|
||||
android:id="@+id/navigation_rail_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
app:menuGravity="center"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:menu="@menu/main_bnv" />
|
||||
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:id="@+id/view_pager_main"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/navigation_rail_view"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
<androidx.viewpager.widget.ViewPager
|
||||
android:id="@+id/view_pager_main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/bottom_navigation_view"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/navigation_rail_view"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="SpeakableTextPresentCheck" />
|
||||
|
||||
@@ -20,9 +20,23 @@
|
||||
android:id="@+id/bottom_navigation_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="visible"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:menu="@menu/main_bnv" />
|
||||
|
||||
<com.google.android.material.navigationrail.NavigationRailView
|
||||
android:id="@+id/navigation_rail_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorSurfaceContainer"
|
||||
android:visibility="visible"
|
||||
app:headerLayout="@layout/navigation_rail_fab"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:menu="@menu/main_bnv"
|
||||
app:menuGravity="center" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/navigation_rail_fab"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top|start"
|
||||
android:clipChildren="false"
|
||||
android:clipToPadding="false"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/nav_botton"
|
||||
android:layout_width="56dp"
|
||||
android:layout_height="56dp"
|
||||
android:scaleType="center"
|
||||
android:src="@drawable/ic_menu" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
||||
android:id="@+id/nav_fab"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/search"
|
||||
app:icon="@drawable/ic_search" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -124,5 +124,11 @@
|
||||
<item>@string/bookshelf_px_5</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="tabletInterface">
|
||||
<item>自动</item>
|
||||
<item>总是</item>
|
||||
<item>横屏时</item>
|
||||
<item>关闭</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -1242,4 +1242,5 @@
|
||||
<string name="system_media_control_compatibility_change">系统媒体控件兼容性更改</string>
|
||||
<string name="system_media_control_compatibility_change_summary">当锁屏不显示系统媒体控件时可以尝试开启,比如 OneUI 7.0或 OriginOS 等</string>
|
||||
<string name="read_aloud_pause_resume">朗读暂停/继续</string>
|
||||
<string name="tabletInterface">平板界面</string>
|
||||
</resources>
|
||||
@@ -64,4 +64,11 @@
|
||||
<item>en</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="tabletInterface_value">
|
||||
<item>auto</item>
|
||||
<item>always</item>
|
||||
<item>landscape</item>
|
||||
<item>off</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -152,6 +152,13 @@
|
||||
<item>English</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="tabletInterface">
|
||||
<item>Auto</item>
|
||||
<item>Always</item>
|
||||
<item>In_Landscape_Mode</item>
|
||||
<item>Off</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="rule_type">
|
||||
<item>BookSource</item>
|
||||
<item>RssSource</item>
|
||||
|
||||
@@ -1247,4 +1247,5 @@
|
||||
<string name="system_media_control_compatibility_change_summary">当锁屏不显示系统媒体控件时可以尝试开启,比如 OneUI 7.0或 OriginOS 等</string>
|
||||
<string name="read_aloud_pause_resume">朗读暂停/继续</string>
|
||||
<string name="play_mode">播放模式</string>
|
||||
<string name="tabletInterface">平板界面</string>
|
||||
</resources>
|
||||
@@ -40,6 +40,13 @@
|
||||
app:iconSpaceReserved="false"
|
||||
app:icons="@array/icons" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.NameListPreference
|
||||
android:defaultValue="auto"
|
||||
android:key="tabletInterface"
|
||||
android:title="@string/tabletInterface"
|
||||
app:entries="@array/tabletInterface"
|
||||
app:entryValues="@array/tabletInterface_value" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:key="welcomeStyle"
|
||||
android:title="@string/welcome_style"
|
||||
|
||||
Reference in new issue
Block a user