Advertisement
Guest User

Untitled

a guest
May 19th, 2020
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:orientation="vertical">
  8.  
  9.     <androidx.appcompat.widget.Toolbar
  10.        android:id="@+id/toolbar"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="?attr/actionBarSize"
  13.        android:background="?attr/colorPrimary"
  14.  
  15.        android:theme="?attr/actionBarTheme"
  16.        app:navigationIcon="@drawable/ic_dehaze_black_24dp"
  17.        >
  18.  
  19.  
  20.         <Button
  21.            android:id="@+id/news"
  22.            android:layout_width="35dp"
  23.            android:layout_height="35dp"
  24.            android:layout_gravity="end"
  25.            android:layout_marginRight="10dp"
  26.            android:background="@drawable/ic_notifications_none_black_24dp"
  27.            android:gravity="bottom" />
  28.  
  29.     </androidx.appcompat.widget.Toolbar>
  30.  
  31.     <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  32.        android:id="@+id/drawer_layout"
  33.        android:layout_width="240dp"
  34.        android:layout_height="match_parent"
  35.        tools:openDrawer="start"
  36.        android:fitsSystemWindows="false"
  37.        >
  38.  
  39.  
  40.         <com.google.android.material.navigation.NavigationView
  41.            android:id="@+id/drawer_navigation"
  42.            android:layout_width="match_parent"
  43.            android:layout_height="match_parent"
  44.            android:layout_gravity="left"
  45.            android:background="@color/white"
  46.            android:fitsSystemWindows="true"
  47.            app:menu="@menu/menu" />
  48.     </androidx.drawerlayout.widget.DrawerLayout>
  49.  
  50. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement