MaterialDrawer icon indicating copy to clipboard operation
MaterialDrawer copied to clipboard

Drawer creates a margin in top

Open jlccaires opened this issue 11 years ago • 3 comments

When a activity is started from another that has a drawer, it creates a margin above toolbar.

screen shot 2015-04-22 at 21 31 37

jlccaires avatar Apr 23 '15 00:04 jlccaires

@jlccaires could you add a sample to reproduce the same!.

raghunandankavi2010 avatar Apr 23 '15 05:04 raghunandankavi2010

I find a solution! By some reason, the context from my listView framework is getting some wrong theme context. i changed this:

Intent intent = new Intent(FirstActivity.this, OtherActivity.class);
startActivityForResult(intent, 0);

to this:

Intent intent = new Intent(getApplicationContext(), OtherActivity.class);
startActivityForResult(intent, 0);

THE PROBLEM WAS NOT IN MATERIAL DRAWABLE. Thanks by create this awesome library.

jlccaires avatar Apr 23 '15 13:04 jlccaires

@jlccaires great that you were able to solve your prolbem

mikepenz avatar Apr 23 '15 17:04 mikepenz