Skip to content

Instantly share code, notes, and snippets.

@mmanishh
Forked from anonymous/parallax appbar
Last active May 17, 2016 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmanishh/e534fb4408641bb506e43f12fafc012e to your computer and use it in GitHub Desktop.
Save mmanishh/e534fb4408641bb506e43f12fafc012e to your computer and use it in GitHub Desktop.
<android.support.v4.widget.DrawerLayout 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:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.CoordinatorLayout
android:id="@+id/root_coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|enterAlways">
<include
android:id="@+id/toolbar"
layout="@layout/toolbar"
app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
app:layout_collapseMode="pin" />
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:id="@+id/container_body"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
<android.support.design.widget.NavigationView
android:id="@+id/fragment_navigation_drawer"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
app:itemBackground="@android:color/transparent"
app:itemIconTint="@drawable/drawer_item_selector"
app:itemTextColor="@drawable/drawer_item_selector"
app:menu="@menu/drawer"
app:theme="@style/NavigationDrawerStyle" />
<!--app:headerLayout="@layout/nav_header"-->
<!--app:itemIconTint="@color/navdrawer_menu_textColor"-->
<!--app:itemTextColor="@color/navdrawer_menu_textColor"-->
<!--app:itemTextColor="@color/selector_nav"-->
<android.support.design.widget.NavigationView
android:id="@+id/fragment_navigation_drawer_right"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="end"
app:itemBackground="@android:color/transparent"
app:itemIconTint="@color/selector_nav"
app:itemTextColor="@color/navdrawer_menu_textColor">
<!--app:itemTextColor="@color/selector_nav"-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="@color/colorPrimary"
android:gravity="center"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:text="Notification"
android:textColor="@color/white"
android:textSize="20dp" />
<com.rinc.ruprise.r.utils.customs.CustomRecyclerView
android:id="@+id/fragment_navigation_drawer_right_recyclerView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:divider="@null" />
</LinearLayout>
</android.support.design.widget.NavigationView>
</android.support.v4.widget.DrawerLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment