1<!-- 2 ~ Copyright (C) 2019 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<merge 17 xmlns:android="http://schemas.android.com/apk/res/android"> 18 19 <LinearLayout 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="horizontal" 23 android:layout_marginTop="@dimen/controls_top_margin" 24 android:layout_marginBottom="@dimen/controls_header_bottom_margin"> 25 26 <!-- make sure the header stays centered in the layout by adding a spacer --> 27 <Space 28 android:layout_width="@dimen/controls_header_menu_size" 29 android:layout_height="1dp" /> 30 <!-- need to keep this outer view in order to have a correctly sized anchor 31 for the dropdown menu, as well as dropdown background in the right place --> 32 <LinearLayout 33 android:id="@+id/controls_header" 34 android:orientation="horizontal" 35 android:layout_width="0dp" 36 android:layout_weight="1" 37 android:minHeight="48dp" 38 android:layout_height="wrap_content" 39 android:layout_gravity="center" 40 android:gravity="center"> 41 <TextView 42 style="@style/Control.Spinner.Header" 43 android:clickable="false" 44 android:id="@+id/app_or_structure_spinner" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:layout_gravity="center" /> 48 </LinearLayout> 49 <ImageView 50 android:id="@+id/controls_more" 51 android:src="@drawable/ic_more_vert" 52 android:layout_width="@dimen/controls_header_menu_size" 53 android:layout_height="@dimen/controls_header_menu_size" 54 android:padding="12dp" 55 android:tint="@color/control_more_vert" 56 android:layout_gravity="center" 57 android:contentDescription="@string/accessibility_menu" 58 android:background="?android:attr/selectableItemBackgroundBorderless" /> 59 </LinearLayout> 60 61 <LinearLayout 62 android:id="@+id/global_actions_controls_list" 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:orientation="vertical" 66 android:layout_marginLeft="@dimen/global_actions_side_margin" 67 android:layout_marginRight="@dimen/global_actions_side_margin" /> 68</merge> 69