android - Changing background Color of DrawerLayout -


i'm trying change color of drawerlayout in app

<android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ffffff" android:backgroundtint="#ffffff"> 

as seen above, i've tried android:background , android:backgroundtint both don't seem working. appreciated

set background color second embedded view, e.g. listview in example:

<android.support.v4.widget.drawerlayout android:id="@+id/drawer_layout" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:opendrawer="start">  <include     layout="@layout/activity_navigation_app_bar"     android:layout_width="match_parent"     android:layout_height="match_parent"/>  <listview android:id="@+id/list_drawer_menu"           android:layout_width="match_parent"           android:layout_height="wrap_content"           android:choicemode="singlechoice"           android:divider="@android:color/transparent"           android:background="#ffffff"           android:dividerheight="0dp"/>  </android.support.v4.widget.drawerlayout> 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -