asdsolutions-os / duo-navigation-drawer

A flexible, easy to use, unique drawer library for your Android project.
http://psdcompany.nl/
Apache License 2.0
1.1k stars 191 forks source link

Background Color of Navigation Drawer #28

Closed mhafeezgr8 closed 5 years ago

mhafeezgr8 commented 6 years ago

Hey its a question not an issue, i have just noticed that navigation drawer background color is being picked up from of toolbar of extending activity, so if there's a way we can customize the background color of navigation drawer

AsadLeo14 commented 6 years ago

@mhafeezgr8 use app:background="@drawable/bg" attribute

<nl.psdcompany.duonavigationdrawer.views.DuoMenuView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" app:background="@drawable/bg" />