Rohan Shah | d3cf756 | 2018-02-23 11:12:28 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ~ Copyright (C) 2018 The Android Open Source Project |
| 4 | ~ |
| 5 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ~ you may not use this file except in compliance with the License. |
| 7 | ~ You may obtain a copy of the License at |
| 8 | ~ |
| 9 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ~ |
| 11 | ~ Unless required by applicable law or agreed to in writing, software |
| 12 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ~ See the License for the specific language governing permissions and |
| 15 | ~ limitations under the License |
| 16 | --> |
| 17 | <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:id="@+id/header_text_container" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="@dimen/qs_header_tooltip_height" |
| 21 | android:layout_below="@id/quick_status_bar_system_icons" |
| 22 | android:layout_marginTop="12dp"> |
| 23 | |
| 24 | <TextView |
| 25 | android:id="@+id/long_press_tooltip" |
| 26 | android:layout_width="wrap_content" |
| 27 | android:layout_height="wrap_content" |
Fabian Kozynski | 4e76d1f | 2019-02-25 16:30:04 -0500 | [diff] [blame] | 28 | android:layout_gravity="start|bottom" |
Rohan Shah | d3cf756 | 2018-02-23 11:12:28 -0800 | [diff] [blame] | 29 | android:alpha="0" |
| 30 | android:text="@string/quick_settings_header_onboarding_text" |
| 31 | android:textAppearance="@style/TextAppearance.QS.TileLabel" |
Rohan Shah | b6a915c | 2018-03-01 11:57:00 -0800 | [diff] [blame] | 32 | android:textColor="?android:attr/textColorSecondary" |
Rohan Shah | d3cf756 | 2018-02-23 11:12:28 -0800 | [diff] [blame] | 33 | android:visibility="invisible" /> |
| 34 | |
| 35 | <LinearLayout |
Rohan Shah | d3cf756 | 2018-02-23 11:12:28 -0800 | [diff] [blame] | 36 | android:layout_width="wrap_content" |
| 37 | android:layout_height="wrap_content" |
Fabian Kozynski | 4e76d1f | 2019-02-25 16:30:04 -0500 | [diff] [blame] | 38 | android:layout_gravity="start|bottom" |
| 39 | android:gravity="center_vertical"> |
Rohan Shah | d3cf756 | 2018-02-23 11:12:28 -0800 | [diff] [blame] | 40 | |
Fabian Kozynski | 4e76d1f | 2019-02-25 16:30:04 -0500 | [diff] [blame] | 41 | <LinearLayout |
| 42 | android:id="@+id/status_container" |
Rohan Shah | d3cf756 | 2018-02-23 11:12:28 -0800 | [diff] [blame] | 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
Fabian Kozynski | 4e76d1f | 2019-02-25 16:30:04 -0500 | [diff] [blame] | 45 | android:layout_gravity="start|center_vertical" |
| 46 | android:layout_weight="1" |
| 47 | android:gravity="center_vertical" |
| 48 | android:alpha="0"> |
| 49 | |
| 50 | <ImageView |
| 51 | android:id="@+id/next_alarm_icon" |
| 52 | android:layout_width="@dimen/qs_header_alarm_icon_size" |
| 53 | android:layout_height="@dimen/qs_header_alarm_icon_size" |
| 54 | android:src="@drawable/stat_sys_alarm" |
| 55 | android:tint="?android:attr/textColorPrimary" |
| 56 | android:visibility="gone"/> |
| 57 | |
| 58 | <TextView |
| 59 | android:id="@+id/next_alarm_text" |
| 60 | android:layout_width="wrap_content" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:layout_marginStart="@dimen/qs_header_alarm_text_margin_start" |
| 63 | android:textAppearance="@style/TextAppearance.QS.Status" |
| 64 | android:visibility="gone"/> |
| 65 | |
| 66 | <View |
| 67 | android:id="@+id/status_separator" |
| 68 | android:layout_width="@dimen/qs_header_separator_width" |
| 69 | android:layout_height="match_parent" |
| 70 | android:visibility="gone"/> |
| 71 | |
| 72 | <ImageView |
| 73 | android:id="@+id/ringer_mode_icon" |
| 74 | android:layout_width="@dimen/qs_header_alarm_icon_size" |
| 75 | android:layout_height="@dimen/qs_header_alarm_icon_size" |
| 76 | android:tint="?android:attr/textColorPrimary" |
| 77 | android:visibility="gone"/> |
| 78 | |
| 79 | <TextView |
| 80 | android:id="@+id/ringer_mode_text" |
| 81 | android:layout_width="wrap_content" |
| 82 | android:layout_height="wrap_content" |
| 83 | android:layout_marginStart="@dimen/qs_header_alarm_text_margin_start" |
| 84 | android:textAppearance="@style/TextAppearance.QS.Status" |
| 85 | android:visibility="gone"/> |
| 86 | </LinearLayout> |
Rohan Shah | d3cf756 | 2018-02-23 11:12:28 -0800 | [diff] [blame] | 87 | |
Amin Shaikh | 856939f | 2018-03-29 09:41:45 -0400 | [diff] [blame] | 88 | <View |
Fabian Kozynski | 4e76d1f | 2019-02-25 16:30:04 -0500 | [diff] [blame] | 89 | android:minWidth="@dimen/qs_status_separator" |
| 90 | android:layout_width="0dp" |
Amin Shaikh | 856939f | 2018-03-29 09:41:45 -0400 | [diff] [blame] | 91 | android:layout_height="match_parent" |
Fabian Kozynski | 4e76d1f | 2019-02-25 16:30:04 -0500 | [diff] [blame] | 92 | android:layout_weight="1"/> |
Amin Shaikh | 761c566 | 2018-03-27 16:55:43 -0400 | [diff] [blame] | 93 | |
Fabian Kozynski | 4e76d1f | 2019-02-25 16:30:04 -0500 | [diff] [blame] | 94 | <include layout="@layout/qs_carrier_group" |
| 95 | android:id="@+id/carrier_group" |
| 96 | android:layout_width="wrap_content" |
| 97 | android:layout_height="wrap_content" |
| 98 | android_layout_gravity="center vertical|end"/> |
Rohan Shah | d3cf756 | 2018-02-23 11:12:28 -0800 | [diff] [blame] | 99 | </LinearLayout> |
| 100 | |
| 101 | </FrameLayout> |