Changeset View
Changeset View
Standalone View
Standalone View
res/layout/new_main_activity.xml
- This file was added.
<?xml version="1.0" encoding="utf-8"?> | |||||
<androidx.drawerlayout.widget.DrawerLayout | |||||
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" | |||||
xmlns:app="http://schemas.android.com/apk/res-auto" | |||||
android:id="@+id/drawer_layout" | |||||
android:layout_height="match_parent"> | |||||
<LinearLayout | |||||
android:layout_width="match_parent" | |||||
android:layout_height="match_parent" | |||||
android:orientation="vertical"> | |||||
<!-- The ActionBar displayed at the top --> | |||||
<include | |||||
layout="@layout/default_toobar" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="wrap_content" /> | |||||
<!-- The main content view where fragments are loaded --> | |||||
<FrameLayout | |||||
android:id="@+id/mainActContentFrame" | |||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" | |||||
android:layout_width="match_parent" | |||||
android:layout_height="match_parent" /> | |||||
</LinearLayout> | |||||
<com.google.android.material.navigation.NavigationView | |||||
android:id="@+id/nvView" | |||||
android:layout_width="wrap_content" | |||||
android:layout_height="match_parent" | |||||
android:layout_gravity="start" | |||||
android:background="?attr/colorPrimaryDark" | |||||
android:theme="@style/ThemeOverlay.AppCompat.Dark" | |||||
app:headerLayout="@layout/nav_header" | |||||
app:insetForeground="@color/teal_200" | |||||
app:itemIconTint="@color/teal_200" | |||||
app:itemTextAppearance="?android:attr/textAppearanceMedium" | |||||
app:itemTextColor="@android:color/white" | |||||
android:fitsSystemWindows="true" | |||||
app:menu="@menu/drawer_main" /> | |||||
</androidx.drawerlayout.widget.DrawerLayout> | |||||
No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register