Android Navigation Drawer and windowActionBarOverlay = true

前端 未结 5 1704
清酒与你
清酒与你 2021-01-30 14:30

I\'m trying to implement the new Android Navigation Drawer in my application. I have created a BaseActivity.java that handles the Drawer setup and listeners, and I have two suba

5条回答
  •  名媛妹妹
    2021-01-30 14:51

    And now, it works great for the top side, but for some reason there's also a margin at the bottom of the view, which doesn't make any sense to me at all. Here's a screenshot.

    If you set your ListView gravity to start|bottom it solves your problem. No additional margin is added at the bottom. Looks like the DrawerLayout default gravity is start|center

    
    

提交回复
热议问题