blob: 065ff68774ebef582220b58583fb58779d8efc96 [file] [log] [blame]
Fabian Kozynski9aa23af2020-02-05 17:47:47 -05001<!--
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 -->
Matt Pietal22231792020-01-23 09:51:09 -050016<merge
Matt Pietalfbe68882020-03-27 13:30:10 -040017 xmlns:android="http://schemas.android.com/apk/res/android">
Matt Pietal22231792020-01-23 09:51:09 -050018
Matt Pietalfbe68882020-03-27 13:30:10 -040019 <LinearLayout
Matt Pietal22231792020-01-23 09:51:09 -050020 android:layout_width="match_parent"
Matt Pietalfbe68882020-03-27 13:30:10 -040021 android:layout_height="match_parent"
22 android:orientation="horizontal"
23 android:layout_marginTop="@dimen/controls_top_margin"
Matt Pietalf74554f2020-04-29 13:43:55 -040024 android:layout_marginBottom="@dimen/controls_header_bottom_margin">
Matt Pietalfbe68882020-03-27 13:30:10 -040025
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" />
Matt Pietalf74554f2020-04-29 13:43:55 -040030 <!-- 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 -->
Matt Pietal9ef947a2020-03-04 08:22:03 -050032 <LinearLayout
33 android:id="@+id/controls_header"
34 android:orientation="horizontal"
Matt Pietalfbe68882020-03-27 13:30:10 -040035 android:layout_width="0dp"
36 android:layout_weight="1"
Matt Pietal6c89d1e2020-04-09 13:35:58 -040037 android:minHeight="48dp"
Matt Pietal638253a2020-03-02 09:10:43 -050038 android:layout_height="wrap_content"
Matt Pietalfbe68882020-03-27 13:30:10 -040039 android:layout_gravity="center"
40 android:gravity="center">
Matt Pietal9ef947a2020-03-04 08:22:03 -050041 <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>
Matt Pietal5ebb7fe2020-03-20 12:58:54 -040049 <ImageView
50 android:id="@+id/controls_more"
51 android:src="@drawable/ic_more_vert"
Matt Pietalfbe68882020-03-27 13:30:10 -040052 android:layout_width="@dimen/controls_header_menu_size"
53 android:layout_height="@dimen/controls_header_menu_size"
Matt Pietal5ebb7fe2020-03-20 12:58:54 -040054 android:padding="12dp"
Matt Pietal5ebb7fe2020-03-20 12:58:54 -040055 android:tint="@color/control_more_vert"
Matt Pietalfbe68882020-03-27 13:30:10 -040056 android:layout_gravity="center"
57 android:contentDescription="@string/accessibility_menu"
58 android:background="?android:attr/selectableItemBackgroundBorderless" />
59 </LinearLayout>
Matt Pietal22231792020-01-23 09:51:09 -050060
61 <LinearLayout
62 android:id="@+id/global_actions_controls_list"
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
Matt Pietal638253a2020-03-02 09:10:43 -050065 android:orientation="vertical"
Lucas Dupincb6726f2020-04-07 19:32:38 -070066 android:layout_marginLeft="@dimen/global_actions_side_margin"
67 android:layout_marginRight="@dimen/global_actions_side_margin" />
Matt Pietal22231792020-01-23 09:51:09 -050068</merge>