Improve settings navigation layout

This commit is contained in:
ajp_anton
2026-06-18 09:24:52 +00:00
parent 28cc72b7ea
commit 978346624e
4 changed files with 190 additions and 31 deletions
+38 -16
View File
@@ -9,30 +9,52 @@
android:fitsSystemWindows="true">
<LinearLayout
android:id="@+id/main_shell"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
android:orientation="horizontal">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/sbt_toolbar_background"
android:elevation="0dp"
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
app:navigationIconTint="@color/sbt_on_primary"
app:titleTextColor="@android:color/white" />
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view_permanent"
android:layout_width="@dimen/sbt_navigation_drawer_width"
android:layout_height="match_parent"
android:background="@color/sbt_surface"
android:fitsSystemWindows="true"
android:visibility="gone"
app:headerLayout="@layout/drawer_header"
app:itemBackground="@drawable/drawer_item_background"
app:itemTextColor="@color/drawer_item_text_color"
app:menu="@menu/drawer_menu" />
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:id="@+id/main_content"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/sbt_toolbar_background"
android:elevation="0dp"
android:theme="@style/ThemeOverlay.MaterialComponents.Dark.ActionBar"
app:navigationIconTint="@color/sbt_on_primary"
app:titleTextColor="@android:color/white" />
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</LinearLayout>
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:id="@+id/nav_view_drawer"
android:layout_width="@dimen/sbt_navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@color/sbt_surface"
+2 -2
View File
@@ -2,11 +2,11 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="172dp"
android:layout_height="@dimen/sbt_drawer_header_height"
android:background="@drawable/sbt_drawer_header_background"
android:gravity="bottom"
android:orientation="vertical"
android:padding="20dp">
android:padding="@dimen/sbt_drawer_header_padding">
<TextView
android:layout_width="wrap_content"
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="sbt_navigation_drawer_width">216dp</dimen>
<dimen name="sbt_folded_portrait_width">360dp</dimen>
<dimen name="sbt_navigation_menu_item_height">48dp</dimen>
<dimen name="sbt_drawer_header_height">86dp</dimen>
<dimen name="sbt_drawer_header_min_height">86dp</dimen>
<dimen name="sbt_drawer_header_max_height">172dp</dimen>
<dimen name="sbt_drawer_header_padding">16dp</dimen>
</resources>