Skip to main content


Showing posts with the label Featured

Android New Design Features with new Android Design Support Library

NavigationView as DrawerLayout’s drawer content view with a layout such as:
<""xmlns:app=""android:layout_width="match_parent"android:layout_height="match_parent"android:fitsSystemWindows="true"><!-- your content layout --><"wrap_content"android:layout_height="match_parent"android:layout_gravity="start"app:headerLayout="@layout/drawer_header"app:menu="@menu/drawer"/></>

You’ll note two attributes for NavigationView: app:headerLayout controls the (optional) layout used for the is the menu resource inflated for the navigation items (which can also be updated at runtime). NavigationViewtakes care of the scrim protection …