Materialdrawer: Drawer with a drawable Background

Created on 9 May 2016  路  3Comments  路  Source: mikepenz/MaterialDrawer

Thank you for this awesome Library
i only want to change the background of the Drawer and keep every thing else as it is.

i suggest
drawer.getDrawerLayout().getBackground().setBackgroundResource(R.drawable.dinner);

question

Most helpful comment

All 3 comments

Lolipop 5.0 this way is making the drawer slow and the background disappear sometimes

OpenGLRenderer: Trying to scale down bitmap for texture
Allocation failed for scaled bitmap

the UI stops

the background size is 38.9 KB

@jehad-suliman you can use picasso or anything else to set the background for the DrawerLayout

You have the reference already via: drawer.getDrawerLayout()

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sonh picture sonh  路  3Comments

hosseiniSeyRo picture hosseiniSeyRo  路  3Comments

HanderWei picture HanderWei  路  3Comments

kakai248 picture kakai248  路  4Comments

Meeks91 picture Meeks91  路  3Comments