0% found this document useful (0 votes)
29 views

Mainactivity XML

The document describes an Android layout file that contains a DrawerLayout with a scrollable content area and a NavigationView drawer. The content area includes a Toolbar and TextView. The NavigationView drawer links to external header and menu layout files.

Uploaded by

abijar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Mainactivity XML

The document describes an Android layout file that contains a DrawerLayout with a scrollable content area and a NavigationView drawer. The content area includes a Toolbar and TextView. The NavigationView drawer links to external header and menu layout files.

Uploaded by

abijar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/drawerLayout"
android:fitsSystemWindows="true"
android:background="#F7FFFFFF"
android:minWidth="19dp">

<ScrollView
android:layout_width="wrap_content"
android:background="#F7FFFFFF"
android:layout_height="wrap_content">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#F7FFFFFF"
android:orientation="vertical">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#F7FFFFFF"
app:subtitleTextColor="#0A0A0A"
app:titleTextColor="#111111" />

<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Hello world"/>
<!-- Your code here -->

</LinearLayout>
</ScrollView>
<com.google.android.material.navigation.NavigationView
android:id="@+id/navigation_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start"
app:headerLayout="@layout/header"
app:menu="@menu/drawer_menu">
</com.google.android.material.navigation.NavigationView>
</androidx.drawerlayout.widget.DrawerLayout>

You might also like