I embed Material Design in my application, which has a navigation box. Among all the various Nav implementations. Box and toolbar with material design ( see. This post ); I decided that the application should look just like the ICS / Halo design, and pulled out a Nav box under the toolbar. The problem is that the toolbar fades with shadow, like any activity when the navigation box is open. How can I color the toolbar? If you see the image in the post I linked above, I'm after # 6, 3 or 5, but now I like # 9 more.
Example (from the post above):
What I need (no shadow on the toolbar):

What I'm getting right now (the toolbar gets dark when the navigation box is open):

Here is the code for my main XML action:
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" tools:context="com.funkhaus.navdrawer.app.MainActivity"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.Toolbar android:id="@+id/my_awesome_toolbar" android:layout_height="wrap_content" android:layout_width="match_parent" android:minHeight="?attr/actionBarSize" android:background="?attr/colorPrimary" /> <FrameLayout android:id="@+id/container" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="?attr/actionBarSize" /> </FrameLayout> <fragment android:id="@+id/navigation_drawer" android:layout_width="@dimen/navigation_drawer_width" android:layout_height="match_parent" android:layout_marginTop="?attr/actionBarSize" android:fitsSystemWindows="true" android:layout_gravity="start" android:name="com.funkhaus.brewwerks.NavigationDrawerFragment" />
The notable part is that <FrameLayout> , whose identifier is 'container' , where all my fragments are bloated, and its marginTop been set to the height of the toolbar, so its contents will be below the toolbar. Similarly, a navigation box fragment also has its marginTop set to the height of the toolbar so that it slides lower.
android material-design
Flash
source share