android – 在DrawerLayout上方放置一个视图(在抽屉上方)
作者:互联网
是否可以在整个DrawerLayout上方放置一个View?那么即使它们是开放的,视图仍然在抽屉之上?
解决方法:
Is it possible to place a
View
above the wholeDrawerLayout
?
是.考虑以下布局:
<FrameLayout>
<DrawerLayout>
<FrameLayout>
<!-- the content comes here -->
</FrameLayout>
<!-- one or two drawer views comes here - displayed over content-->
</DrawerLayout>
<!-- any views that are here will be painted even over the drawers -->
</FrameLayout>
标签:android,view,drawerlayout 来源: https://codeday.me/bug/20190624/1275891.html