Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
83 lines
3.6 KiB
XML
83 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/drawerLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorSurface"
|
|
android:fitsSystemWindows="true"
|
|
tools:context=".ui.MainActivity">
|
|
|
|
<!-- Main content -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Modern colored app bar with gradient surface and centered title -->
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorPrimary"
|
|
android:fitsSystemWindows="true"
|
|
app:elevation="0dp">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="@drawable/bg_gradient_primary_bottom"
|
|
android:elevation="0dp"
|
|
app:navigationIcon="@drawable/ic_menu_hamburger"
|
|
app:navigationIconTint="?attr/colorOnPrimary"
|
|
app:title="@string/app_title"
|
|
app:titleCentered="true"
|
|
app:titleTextAppearance="?attr/textAppearanceTitleLarge"
|
|
app:titleTextColor="?attr/colorOnPrimary" />
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/usageBanner"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/space_md"
|
|
android:layout_marginTop="@dimen/space_sm"
|
|
android:background="@drawable/bg_banner_warning"
|
|
android:drawableStart="@drawable/ic_circle_status"
|
|
android:drawableTint="?attr/colorWarning"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="@dimen/touch_target_min"
|
|
android:padding="@dimen/space_sm"
|
|
android:text="@string/usage_limit_banner"
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/fragmentContainer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorSurface" />
|
|
</LinearLayout>
|
|
|
|
<!-- Navigation drawer with richer surface and modern item styling -->
|
|
<com.google.android.material.navigation.NavigationView
|
|
android:id="@+id/navView"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:background="?attr/colorSurfaceContainerLowest"
|
|
app:headerLayout="@layout/nav_header"
|
|
app:itemHorizontalPadding="@dimen/space_md"
|
|
app:itemIconPadding="@dimen/space_md"
|
|
app:itemIconTint="?attr/colorOnSurfaceVariant"
|
|
app:itemRippleColor="?attr/colorPrimaryContainer"
|
|
app:itemTextAppearance="?attr/textAppearanceBodyLarge"
|
|
app:itemTextColor="?attr/colorOnSurface"
|
|
app:itemVerticalPadding="@dimen/space_md"
|
|
app:menu="@menu/menu_nav_drawer" />
|
|
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|