Jason Monk | e5b770e | 2017-03-03 21:49:29 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | ** Copyright 2012, 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 | |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 18 | <!-- Extends FrameLayout --> |
| 19 | <com.android.systemui.qs.QSFooterImpl |
Jason Monk | e5b770e | 2017-03-03 21:49:29 -0500 | [diff] [blame] | 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 21 | android:id="@+id/qs_footer" |
Jason Monk | e5b770e | 2017-03-03 21:49:29 -0500 | [diff] [blame] | 22 | android:layout_width="match_parent" |
Amin Shaikh | c225e32 | 2018-01-31 18:08:34 -0500 | [diff] [blame] | 23 | android:layout_height="@dimen/qs_footer_height" |
Evan Laird | 39254d4 | 2018-01-18 16:05:30 -0500 | [diff] [blame] | 24 | android:elevation="4dp" |
Amin Shaikh | 3033099 | 2018-03-26 17:50:42 -0400 | [diff] [blame] | 25 | android:background="@android:color/transparent" |
Jason Monk | e5b770e | 2017-03-03 21:49:29 -0500 | [diff] [blame] | 26 | android:baselineAligned="false" |
| 27 | android:clickable="false" |
| 28 | android:clipChildren="false" |
Amin Shaikh | acf322d | 2018-01-31 17:04:56 -0500 | [diff] [blame] | 29 | android:clipToPadding="false"> |
| 30 | |
| 31 | <View |
| 32 | android:id="@+id/qs_footer_divider" |
| 33 | android:layout_width="match_parent" |
| 34 | android:layout_height="1dp" |
| 35 | android:layout_gravity="top" |
| 36 | android:background="?android:attr/dividerHorizontal"/> |
Jason Monk | e5b770e | 2017-03-03 21:49:29 -0500 | [diff] [blame] | 37 | |
Jason Monk | 6ca9732 | 2017-05-09 14:43:20 -0400 | [diff] [blame] | 38 | <LinearLayout |
| 39 | android:layout_width="match_parent" |
Evan Laird | 00e43c4 | 2018-01-22 20:25:45 -0500 | [diff] [blame] | 40 | android:layout_height="match_parent" |
Amin Shaikh | acf322d | 2018-01-31 17:04:56 -0500 | [diff] [blame] | 41 | android:layout_gravity="center_vertical" |
Evan Laird | 00e43c4 | 2018-01-22 20:25:45 -0500 | [diff] [blame] | 42 | android:gravity="end" > |
Jason Monk | e5b770e | 2017-03-03 21:49:29 -0500 | [diff] [blame] | 43 | |
Rohan Shah | 3090e79 | 2018-04-12 00:01:00 -0400 | [diff] [blame] | 44 | <LinearLayout |
Fabian Kozynski | 1823f11 | 2019-01-18 11:43:29 -0500 | [diff] [blame] | 45 | android:id="@+id/qs_mobile" |
Evan Laird | 2cf5682 | 2017-12-18 11:22:39 -0500 | [diff] [blame] | 46 | android:layout_width="0dp" |
Rohan Shah | 3090e79 | 2018-04-12 00:01:00 -0400 | [diff] [blame] | 47 | android:layout_height="match_parent" |
Evan Laird | 2cf5682 | 2017-12-18 11:22:39 -0500 | [diff] [blame] | 48 | android:layout_weight="1" |
Rohan Shah | 3090e79 | 2018-04-12 00:01:00 -0400 | [diff] [blame] | 49 | android:gravity="center_vertical|start" |
Fabian Kozynski | 1823f11 | 2019-01-18 11:43:29 -0500 | [diff] [blame] | 50 | android:orientation="horizontal" |
| 51 | android:layout_marginEnd="32dp"> |
Rohan Shah | 3090e79 | 2018-04-12 00:01:00 -0400 | [diff] [blame] | 52 | |
| 53 | <include |
Fabian Kozynski | 1823f11 | 2019-01-18 11:43:29 -0500 | [diff] [blame] | 54 | layout="@layout/qs_footer_carrier" |
| 55 | android:id="@+id/carrier1" /> |
| 56 | |
| 57 | <View |
| 58 | android:id="@+id/qs_carrier_divider" |
| 59 | android:layout_width="2dp" |
| 60 | android:layout_height="match_parent" |
| 61 | android:layout_marginTop="15dp" |
| 62 | android:layout_marginBottom="15dp" |
| 63 | android:background="?android:attr/dividerVertical" |
Rohan Shah | 3090e79 | 2018-04-12 00:01:00 -0400 | [diff] [blame] | 64 | android:visibility="gone" /> |
| 65 | |
Fabian Kozynski | 1823f11 | 2019-01-18 11:43:29 -0500 | [diff] [blame] | 66 | <include |
| 67 | layout="@layout/qs_footer_carrier" |
| 68 | android:id="@+id/carrier2" |
| 69 | android:visibility="gone"/> |
Rohan Shah | 3090e79 | 2018-04-12 00:01:00 -0400 | [diff] [blame] | 70 | |
| 71 | </LinearLayout> |
| 72 | |
| 73 | <com.android.systemui.qs.PageIndicator |
| 74 | android:id="@+id/footer_page_indicator" |
| 75 | android:layout_width="wrap_content" |
| 76 | android:layout_height="match_parent" |
| 77 | android:layout_gravity="center_vertical" |
| 78 | android:visibility="gone" /> |
Amin Shaikh | d620def | 2018-02-27 16:52:53 -0500 | [diff] [blame] | 79 | |
| 80 | <com.android.keyguard.AlphaOptimizedLinearLayout |
| 81 | android:id="@+id/qs_footer_actions_container" |
Rohan Shah | 3090e79 | 2018-04-12 00:01:00 -0400 | [diff] [blame] | 82 | android:layout_width="@integer/qs_footer_actions_width" |
Amin Shaikh | d620def | 2018-02-27 16:52:53 -0500 | [diff] [blame] | 83 | android:layout_height="match_parent" |
Rohan Shah | 3090e79 | 2018-04-12 00:01:00 -0400 | [diff] [blame] | 84 | android:layout_weight="@integer/qs_footer_actions_weight" |
Amin Shaikh | 4f3f552 | 2018-02-13 17:55:14 -0500 | [diff] [blame] | 85 | android:gravity="center_vertical|end" > |
Evan Laird | 00e43c4 | 2018-01-22 20:25:45 -0500 | [diff] [blame] | 86 | <com.android.systemui.statusbar.phone.MultiUserSwitch |
| 87 | android:id="@+id/multi_user_switch" |
| 88 | android:layout_width="48dp" |
| 89 | android:layout_height="48dp" |
| 90 | android:layout_alignParentEnd="true" |
Jason Monk | 6ca9732 | 2017-05-09 14:43:20 -0400 | [diff] [blame] | 91 | android:background="@drawable/ripple_drawable" |
Evan Laird | 00e43c4 | 2018-01-22 20:25:45 -0500 | [diff] [blame] | 92 | android:focusable="true"> |
| 93 | |
| 94 | <ImageView |
| 95 | android:id="@+id/multi_user_avatar" |
| 96 | android:layout_width="@dimen/multi_user_avatar_expanded_size" |
| 97 | android:layout_height="@dimen/multi_user_avatar_expanded_size" |
| 98 | android:layout_gravity="center" |
| 99 | android:scaleType="centerInside"/> |
| 100 | </com.android.systemui.statusbar.phone.MultiUserSwitch> |
Jason Monk | 6ca9732 | 2017-05-09 14:43:20 -0400 | [diff] [blame] | 101 | |
| 102 | <com.android.systemui.statusbar.AlphaOptimizedImageView |
Evan Laird | 00e43c4 | 2018-01-22 20:25:45 -0500 | [diff] [blame] | 103 | android:id="@android:id/edit" |
| 104 | android:layout_width="48dp" |
| 105 | android:layout_height="48dp" |
| 106 | android:background="?android:attr/selectableItemBackgroundBorderless" |
| 107 | android:clickable="true" |
| 108 | android:clipToPadding="false" |
| 109 | android:contentDescription="@string/accessibility_quick_settings_edit" |
| 110 | android:focusable="true" |
Amin Shaikh | 4f3f552 | 2018-02-13 17:55:14 -0500 | [diff] [blame] | 111 | android:padding="15dp" |
Amin Shaikh | 10f363b | 2019-01-24 17:59:49 -0500 | [diff] [blame] | 112 | android:src="@*android:drawable/ic_mode_edit" |
Evan Laird | 00e43c4 | 2018-01-22 20:25:45 -0500 | [diff] [blame] | 113 | android:tint="?android:attr/colorForeground"/> |
Jason Monk | 6ca9732 | 2017-05-09 14:43:20 -0400 | [diff] [blame] | 114 | |
Evan Laird | 00e43c4 | 2018-01-22 20:25:45 -0500 | [diff] [blame] | 115 | <com.android.systemui.statusbar.AlphaOptimizedFrameLayout |
| 116 | android:id="@+id/settings_button_container" |
| 117 | android:layout_width="48dp" |
| 118 | android:layout_height="48dp" |
| 119 | android:clipChildren="false" |
| 120 | android:clipToPadding="false"> |
| 121 | |
| 122 | <com.android.systemui.statusbar.phone.SettingsButton |
| 123 | android:id="@+id/settings_button" |
| 124 | style="@android:style/Widget.Material.Button.Borderless" |
| 125 | android:layout_width="match_parent" |
| 126 | android:layout_height="match_parent" |
| 127 | android:background="@drawable/ripple_drawable" |
| 128 | android:contentDescription="@string/accessibility_quick_settings_settings" |
Amin Shaikh | 4f3f552 | 2018-02-13 17:55:14 -0500 | [diff] [blame] | 129 | android:padding="15dp" |
Evan Laird | 00e43c4 | 2018-01-22 20:25:45 -0500 | [diff] [blame] | 130 | android:src="@drawable/ic_settings_16dp" |
| 131 | android:tint="?android:attr/colorForeground"/> |
| 132 | |
| 133 | <com.android.systemui.statusbar.AlphaOptimizedImageView |
| 134 | android:id="@+id/tuner_icon" |
| 135 | android:layout_width="match_parent" |
| 136 | android:layout_height="match_parent" |
| 137 | android:paddingStart="36dp" |
| 138 | android:paddingEnd="4dp" |
| 139 | android:src="@drawable/tuner" |
| 140 | android:tint="?android:attr/textColorTertiary" |
| 141 | android:visibility="invisible"/> |
| 142 | |
| 143 | </com.android.systemui.statusbar.AlphaOptimizedFrameLayout> |
Amin Shaikh | 4f3f552 | 2018-02-13 17:55:14 -0500 | [diff] [blame] | 144 | </com.android.keyguard.AlphaOptimizedLinearLayout> |
Jason Monk | 6ca9732 | 2017-05-09 14:43:20 -0400 | [diff] [blame] | 145 | </LinearLayout> |
Jason Monk | e5b770e | 2017-03-03 21:49:29 -0500 | [diff] [blame] | 146 | |
Amin Shaikh | d620def | 2018-02-27 16:52:53 -0500 | [diff] [blame] | 147 | <View |
| 148 | android:id="@+id/qs_drag_handle_view" |
| 149 | android:layout_width="24dp" |
| 150 | android:layout_height="4dp" |
Amin Shaikh | b9176ea | 2018-03-02 11:29:07 -0500 | [diff] [blame] | 151 | android:layout_marginBottom="16dp" |
| 152 | android:layout_gravity="center_horizontal|bottom" |
Amin Shaikh | d620def | 2018-02-27 16:52:53 -0500 | [diff] [blame] | 153 | android:background="@drawable/qs_footer_drag_handle" /> |
| 154 | |
Anthony Chen | 54daefe | 2017-04-07 17:19:54 -0700 | [diff] [blame] | 155 | </com.android.systemui.qs.QSFooterImpl> |