简体   繁体   中英

How to set the Navigation Drawer below the toolbar in Android?

How can I put my ListView below the toolbar?

Here is what I have now:

ListView重叠工具栏

What I want to achieve is something like this:

工具栏下方的ListView

I can't tell for sure if I don't see your xml file. But try adding this to the layout you are using as a drawer.

android:layout_marginTop="@dimen/abc_action_bar_default_height_material"

Hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM