Last active
March 2, 2018 09:22
-
-
Save sharifulislam52/3f6fc67f6aaa3518cae8fb2f28fc5cc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import it into dependencies | |
implementation 'com.android.support:design:26.1.0' | |
// design version should be same to appcompat. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<dimen name="nav_header_height">176dp</dimen> | |
</resources> | |
<!-- 176dp --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.v4.widget.DrawerLayout | |
android:id="@+id/drawer_layout_id" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<include layout="@layout/app_custom_toolbar"/> | |
<ScrollView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:id="@+id/only_activity" | |
android:orientation="vertical" | |
android:visibility="visible" | |
android:padding="10dp"> | |
<!-- What we want to show on our activity --> | |
</LinearLayout> | |
</ScrollView> | |
</LinearLayout> | |
<android.support.design.widget.NavigationView | |
android:id="@+id/nav_view_id" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_gravity="start" | |
app:headerLayout="@layout/nav_header_layout" | |
app:menu="@menu/nav_menu" | |
android:background="#ffffff"> | |
</android.support.design.widget.NavigationView> | |
</android.support.v4.widget.DrawerLayout> | |
<!-- drawer_layout_id, app_custom_toolbar, only_activity, nav_view_id, nav_header_layout, nav_menu, #ffffff --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment