0
votes

I am implementing Navigation Drawer in my Main Activity. When I load a fragment for the drawer item, the action bar gets overlapped above the fragment.I am required to give a top margin of about 48 dp, so that my views come below the action bar. How can I bring my fragment layout below the ActionBar?

2
Post your xml code ?user5400869

2 Answers

0
votes
layout_marginTop="?attr/actionBarSize" 

use this in your layout it changes in size based on screen configuration automatically