Custom NavigationDrawer with full image as a background

时间:2015-10-06 09:03:41

标签: android navigation-drawer android-navigation-drawer

I can't find solution for implementing very custom NavigationDrawer. I want it to have one image background (black one with white square) with few items like in the picture below: enter image description here

Can it be made? As far as I read, it's not really what SDK supports. Only what I got to is that making two items in one line is achievable (still searching for solutions, tho).

1 个答案:

答案 0 :(得分:1)

BNK答案是最好的答案:

  <android.support.design.widget.NavigationView 
    android:id="@+id/nav_view" 
    android:layout_width="wrap_content" 
    android:layout_height="match_parent" 
    android:layout_gravity="start" 
    android:fitsSystemWindows="true" 
    app:headerLayout="@layout/nav_header_main" 
    app:menu="@menu/activity_main_drawer"   
    android:background="@drawable/ic_action_android"/>