mirror of https://codeberg.org/gitnex/GitNex.git
58 lines
2.2 KiB
XML
58 lines
2.2 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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".activities.MainActivity"
|
|
android:id="@+id/drawer_layout"
|
|
android:fitsSystemWindows="true"
|
|
tools:openDrawer="start">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="?attr/primaryBackgroundColor"
|
|
android:id="@+id/toolbar"
|
|
app:titleTextColor="?attr/primaryTextColor"
|
|
android:theme="@style/Widget.AppCompat.SearchView"
|
|
android:elevation="0dp">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
android:textSize="18sp"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:id="@+id/toolbar_title" />
|
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/fragment_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.navigation.NavigationView
|
|
android:layout_width="320dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:id="@+id/nav_view"
|
|
app:headerLayout="@layout/nav_header"
|
|
app:menu="@menu/drawer_menu"
|
|
android:background="?attr/primaryBackgroundColor"
|
|
app:itemIconTint="?attr/primaryTextColor"
|
|
app:itemTextAppearance="@style/DrawerIcon"
|
|
app:itemTextColor="?attr/primaryTextColor" />
|
|
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|