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

AlexMercier picture AlexMercier  ·  3Comments

Erwinstein picture Erwinstein  ·  3Comments

jd-alexander picture jd-alexander  ·  4Comments

hosseiniSeyRo picture hosseiniSeyRo  ·  3Comments

kakai248 picture kakai248  ·  4Comments