in the dev guidelines they say the gap to the right displayborder shall be 56dp if the nav drawer is opened. How can I do that? Because in the xml "match_parent - 56dp" doesnt work. :D Guidelines Thx for help!
Asked
Active
Viewed 48 times
0
-
What is "match_parent - 56dp"? – SuperFrog Oct 28 '15 at 19:36
1 Answers
1
I think it's 56dp by default for most Drawer widgets like android.support.v4.widget.DrawerLayout
The equivalent for "match_parent - 56dp" would be layout_width="match_parent" and layout_marginRight="56dp" for your xml view or layout inside your bigger layout.

Hichem Acher
- 433
- 2
- 16
-
-
actually it doesn't matter, you can also use it inside a LinearLayout. – Hichem Acher Oct 28 '15 at 20:20
-
you can use it inside RelativeLayout, LinearLayout, FrameLayout or even GridLayout and TableLayout. – Hichem Acher Oct 28 '15 at 20:29