Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:background="?attr/colorPrimary"
- android:theme="?attr/actionBarTheme"
- app:navigationIcon="@drawable/ic_dehaze_black_24dp"
- >
- <Button
- android:id="@+id/news"
- android:layout_width="35dp"
- android:layout_height="35dp"
- android:layout_gravity="end"
- android:layout_marginRight="10dp"
- android:background="@drawable/ic_notifications_none_black_24dp"
- android:gravity="bottom" />
- </androidx.appcompat.widget.Toolbar>
- <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/drawer_layout"
- android:layout_width="240dp"
- android:layout_height="match_parent"
- tools:openDrawer="start"
- android:fitsSystemWindows="false"
- >
- <com.google.android.material.navigation.NavigationView
- android:id="@+id/drawer_navigation"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="left"
- android:background="@color/white"
- android:fitsSystemWindows="true"
- app:menu="@menu/menu" />
- </androidx.drawerlayout.widget.DrawerLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement