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