Fabian Kozynski | 9aa23af | 2020-02-05 17:47:47 -0500 | [diff] [blame] | 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 | --> |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 16 | <merge |
Matt Pietal | fbe6888 | 2020-03-27 13:30:10 -0400 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android"> |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 18 | |
Matt Pietal | fbe6888 | 2020-03-27 13:30:10 -0400 | [diff] [blame] | 19 | <LinearLayout |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 20 | android:layout_width="match_parent" |
Matt Pietal | fbe6888 | 2020-03-27 13:30:10 -0400 | [diff] [blame] | 21 | android:layout_height="match_parent" |
| 22 | android:orientation="horizontal" |
| 23 | android:layout_marginTop="@dimen/controls_top_margin" |
Matt Pietal | f74554f | 2020-04-29 13:43:55 -0400 | [diff] [blame] | 24 | android:layout_marginBottom="@dimen/controls_header_bottom_margin"> |
Matt Pietal | fbe6888 | 2020-03-27 13:30:10 -0400 | [diff] [blame] | 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" /> |
Matt Pietal | f74554f | 2020-04-29 13:43:55 -0400 | [diff] [blame] | 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 --> |
Matt Pietal | 9ef947a | 2020-03-04 08:22:03 -0500 | [diff] [blame] | 32 | <LinearLayout |
| 33 | android:id="@+id/controls_header" |
| 34 | android:orientation="horizontal" |
Matt Pietal | fbe6888 | 2020-03-27 13:30:10 -0400 | [diff] [blame] | 35 | android:layout_width="0dp" |
| 36 | android:layout_weight="1" |
Matt Pietal | 6c89d1e | 2020-04-09 13:35:58 -0400 | [diff] [blame] | 37 | android:minHeight="48dp" |
Matt Pietal | 638253a | 2020-03-02 09:10:43 -0500 | [diff] [blame] | 38 | android:layout_height="wrap_content" |
Matt Pietal | fbe6888 | 2020-03-27 13:30:10 -0400 | [diff] [blame] | 39 | android:layout_gravity="center" |
| 40 | android:gravity="center"> |
Matt Pietal | 9ef947a | 2020-03-04 08:22:03 -0500 | [diff] [blame] | 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> |
Matt Pietal | 5ebb7fe | 2020-03-20 12:58:54 -0400 | [diff] [blame] | 49 | <ImageView |
| 50 | android:id="@+id/controls_more" |
| 51 | android:src="@drawable/ic_more_vert" |
Matt Pietal | fbe6888 | 2020-03-27 13:30:10 -0400 | [diff] [blame] | 52 | android:layout_width="@dimen/controls_header_menu_size" |
| 53 | android:layout_height="@dimen/controls_header_menu_size" |
Matt Pietal | 5ebb7fe | 2020-03-20 12:58:54 -0400 | [diff] [blame] | 54 | android:padding="12dp" |
Matt Pietal | 5ebb7fe | 2020-03-20 12:58:54 -0400 | [diff] [blame] | 55 | android:tint="@color/control_more_vert" |
Matt Pietal | fbe6888 | 2020-03-27 13:30:10 -0400 | [diff] [blame] | 56 | android:layout_gravity="center" |
| 57 | android:contentDescription="@string/accessibility_menu" |
| 58 | android:background="?android:attr/selectableItemBackgroundBorderless" /> |
| 59 | </LinearLayout> |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 60 | |
| 61 | <LinearLayout |
| 62 | android:id="@+id/global_actions_controls_list" |
| 63 | android:layout_width="match_parent" |
| 64 | android:layout_height="wrap_content" |
Matt Pietal | 638253a | 2020-03-02 09:10:43 -0500 | [diff] [blame] | 65 | android:orientation="vertical" |
Lucas Dupin | cb6726f | 2020-04-07 19:32:38 -0700 | [diff] [blame] | 66 | android:layout_marginLeft="@dimen/global_actions_side_margin" |
| 67 | android:layout_marginRight="@dimen/global_actions_side_margin" /> |
Matt Pietal | 2223179 | 2020-01-23 09:51:09 -0500 | [diff] [blame] | 68 | </merge> |