Window animation overlaps navigation bar on Android 5.0

[亡魂溺海] 提交于 2019-12-02 20:44:51

Just use <item name="android:windowDrawsSystemBarBackgrounds">false</item> for activity where you show your dialog. In this case your dialog will be under navigation bar during animation.

From the android developers website:

In this release, Android introduces a new Toolbar widget. This is a generalization of the Action Bar pattern that gives you much more control and flexibility. Toolbar is a view in your hierarchy just like any other, making it easier to interleave with the rest of your views, animate it, and react to scroll events. You can also set it as your Activity’s action bar, meaning that your standard options menu actions will be display within it.

So the actionbar is now a view in your layout, that's why the popup goes over it. I also know they introduced some z-index properties, it might be helpful for you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!