Overlapping shadow effect remains on Navigation Drawer's NavigationView

后端 未结 4 1880
孤独总比滥情好
孤独总比滥情好 2021-01-01 18:50

I have refined the Navigation Drawer Activity project template of Android Studio, which uses Toolbar, v7.app.ActionBarDrawerToggle and

4条回答
  •  庸人自扰
    2021-01-01 19:15

    At last, I made it.

    The solution is using FLAG_LAYOUT_NO_LIMITS together with FLAG_FULLSCREEN to the android.view.Window object.

    getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN
            | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
    

    This has gotten rid of both of the shadows perfectly.

    lcw_gg's comment was very useful clue to manipulating android.view.Window. Special thanks to him.

提交回复
热议问题