Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 将视图放置在抽屉布局上方(抽屉上方)_Android_View_Drawerlayout - Fatal编程技术网

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-顺序上方?该死,我在某个地方读到,抽屉布局需要是一个根视图,甚至懒得检查是否真的是这样。不,没有。事实上,这是一个很好的方式做一个覆盖工具栏。