Android 将视图放置在抽屉布局上方(抽屉上方)
是否可以在整个Android 将视图放置在抽屉布局上方(抽屉上方),android,view,drawerlayout,Android,View,Drawerlayout,是否可以在整个抽屉布局上方放置视图?因此,即使抽屉打开,视图仍保持在抽屉上方 是否可以在整个抽屉布局上方放置视图 对。考虑以下布局: <FrameLayout> <DrawerLayout> <FrameLayout> <!-- the content comes here --> </FrameLayout> <!-- one or two drawer views comes here
抽屉布局上方放置视图
?因此,即使抽屉打开,视图仍保持在抽屉上方
是否可以在整个抽屉布局上方放置视图
对。考虑以下布局:
<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>
你是指垂直上方,还是z-顺序上方?该死,我在某个地方读到,抽屉布局需要是一个根视图,甚至懒得检查是否真的是这样。不,没有。事实上,这是一个很好的方式做一个覆盖工具栏。