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 18<!-- Extends FrameLayout --> 19<com.android.systemui.qs.QSFooterImpl 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 android:id="@+id/qs_footer" 22 android:layout_width="match_parent" 23 android:layout_height="@dimen/qs_footer_height" 24 android:layout_marginStart="@dimen/qs_footer_margin" 25 android:layout_marginEnd="@dimen/qs_footer_margin" 26 android:elevation="4dp" 27 android:background="@android:color/transparent" 28 android:baselineAligned="false" 29 android:clickable="false" 30 android:clipChildren="false" 31 android:clipToPadding="false"> 32 33 <LinearLayout 34 android:layout_width="match_parent" 35 android:layout_height="match_parent" 36 android:layout_gravity="center_vertical" 37 android:gravity="end" > 38 39 <com.android.keyguard.AlphaOptimizedLinearLayout 40 android:id="@+id/qs_footer_actions_edit_container" 41 android:layout_width="@integer/qs_footer_actions_width" 42 android:layout_height="match_parent" 43 android:layout_weight="@integer/qs_footer_actions_weight" 44 android:gravity="center_vertical|start" > 45 <com.android.systemui.statusbar.AlphaOptimizedImageView 46 android:id="@android:id/edit" 47 android:layout_width="@dimen/qs_footer_action_button_size" 48 android:layout_height="@dimen/qs_footer_action_button_size" 49 android:background="?android:attr/selectableItemBackgroundBorderless" 50 android:clickable="true" 51 android:clipToPadding="false" 52 android:contentDescription="@string/accessibility_quick_settings_edit" 53 android:focusable="true" 54 android:padding="@dimen/qs_footer_icon_padding" 55 android:src="@*android:drawable/ic_mode_edit" 56 android:tint="?android:attr/colorForeground"/> 57 58 <TextView 59 android:id="@+id/build" 60 android:layout_width="wrap_content" 61 android:layout_height="match_parent" 62 android:clickable="true" 63 android:gravity="center_vertical" 64 android:focusable="true" 65 android:textAppearance="@style/TextAppearance.QS.Status" 66 android:visibility="gone"/> 67 </com.android.keyguard.AlphaOptimizedLinearLayout> 68 69 <com.android.systemui.qs.PageIndicator 70 android:id="@+id/footer_page_indicator" 71 android:layout_width="wrap_content" 72 android:layout_height="match_parent" 73 android:layout_gravity="center_vertical" 74 android:visibility="gone" /> 75 76 <com.android.keyguard.AlphaOptimizedLinearLayout 77 android:id="@+id/qs_footer_actions_container" 78 android:layout_width="@integer/qs_footer_actions_width" 79 android:layout_height="match_parent" 80 android:layout_weight="@integer/qs_footer_actions_weight" 81 android:gravity="center_vertical|end" > 82 <com.android.systemui.statusbar.phone.MultiUserSwitch 83 android:id="@+id/multi_user_switch" 84 android:layout_width="@dimen/qs_footer_action_button_size" 85 android:layout_height="@dimen/qs_footer_action_button_size" 86 android:layout_alignParentEnd="true" 87 android:background="@drawable/ripple_drawable" 88 android:focusable="true"> 89 90 <ImageView 91 android:id="@+id/multi_user_avatar" 92 android:layout_width="@dimen/multi_user_avatar_expanded_size" 93 android:layout_height="@dimen/multi_user_avatar_expanded_size" 94 android:layout_gravity="center" 95 android:scaleType="centerInside"/> 96 </com.android.systemui.statusbar.phone.MultiUserSwitch> 97 98 <com.android.systemui.statusbar.AlphaOptimizedFrameLayout 99 android:id="@+id/settings_button_container" 100 android:layout_width="@dimen/qs_footer_action_button_size" 101 android:layout_height="@dimen/qs_footer_action_button_size" 102 android:clipChildren="false" 103 android:clipToPadding="false"> 104 105 <com.android.systemui.statusbar.phone.SettingsButton 106 android:id="@+id/settings_button" 107 style="@android:style/Widget.Material.Button.Borderless" 108 android:layout_width="match_parent" 109 android:layout_height="match_parent" 110 android:layout_gravity="center" 111 android:padding="@dimen/qs_footer_icon_padding" 112 android:background="@drawable/ripple_drawable" 113 android:contentDescription="@string/accessibility_quick_settings_settings" 114 android:src="@drawable/ic_settings" 115 android:scaleType="centerInside" 116 android:tint="?android:attr/colorForeground"/> 117 118 <com.android.systemui.statusbar.AlphaOptimizedImageView 119 android:id="@+id/tuner_icon" 120 android:layout_width="match_parent" 121 android:layout_height="match_parent" 122 android:paddingStart="36dp" 123 android:paddingEnd="4dp" 124 android:src="@drawable/tuner" 125 android:tint="?android:attr/textColorTertiary" 126 android:visibility="invisible"/> 127 128 </com.android.systemui.statusbar.AlphaOptimizedFrameLayout> 129 </com.android.keyguard.AlphaOptimizedLinearLayout> 130 </LinearLayout> 131 <View 132 android:id="@+id/qs_drag_handle_view" 133 android:layout_width="24dp" 134 android:layout_height="4dp" 135 android:layout_marginBottom="16dp" 136 android:layout_gravity="center_horizontal|bottom" 137 android:background="@drawable/qs_footer_drag_handle" /> 138 139</com.android.systemui.qs.QSFooterImpl> 140