Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2013 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <!-- CoordinatorLayout is necessary for various components (e.g. Snackbars, and
     18      floating action buttons) to operate correctly. -->
     19 <!-- focusableInTouchMode is set in order to force key events to go to the activity's global key 
     20      callback, which is necessary for proper event routing. See BaseActivity.onKeyDown. -->
     21 <android.support.design.widget.CoordinatorLayout
     22     xmlns:android="http://schemas.android.com/apk/res/android"
     23     android:layout_width="match_parent"
     24     android:layout_height="match_parent"
     25     android:id="@+id/coordinator_layout"
     26     android:focusableInTouchMode="true">
     27 
     28     <LinearLayout
     29         android:layout_width="match_parent"
     30         android:layout_height="match_parent"
     31         android:orientation="vertical">
     32 
     33         <com.android.documentsui.DocumentsToolbar
     34             android:id="@+id/toolbar"
     35             android:layout_width="match_parent"
     36             android:layout_height="?android:attr/actionBarSize"
     37             android:background="?android:attr/colorPrimary"
     38             android:elevation="8dp"
     39             android:theme="?actionBarTheme"
     40             android:popupTheme="?actionBarPopupTheme">
     41 
     42             <Spinner
     43                 android:id="@+id/stack"
     44                 android:layout_width="wrap_content"
     45                 android:layout_height="wrap_content"
     46                 android:popupTheme="?actionBarPopupTheme"
     47                 android:background="@android:color/transparent"
     48                 android:layout_marginStart="4dp"
     49                 android:overlapAnchor="true" />
     50 
     51         </com.android.documentsui.DocumentsToolbar>
     52 
     53         <include layout="@layout/directory_cluster"/>
     54 
     55     </LinearLayout>
     56 
     57 </android.support.design.widget.CoordinatorLayout>
     58