John Spurlock | 7f8f22a | 2014-07-02 18:54:17 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2014 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 | --> |
Jorim Jaggi | 43f4372 | 2014-12-10 22:17:44 +0100 | [diff] [blame] | 17 | <com.android.keyguard.AlphaOptimizedLinearLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Adrian Roos | 37f100e | 2014-08-13 22:24:22 +0200 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
Muyuan Li | 0e9f538 | 2016-04-27 15:51:15 -0700 | [diff] [blame] | 21 | android:paddingLeft="@dimen/qs_detail_header_padding" |
| 22 | android:paddingTop="@dimen/qs_detail_header_padding" |
| 23 | android:paddingBottom="@dimen/qs_detail_header_bottom_padding" |
Jason Monk | db50de8 | 2016-02-03 15:34:54 -0500 | [diff] [blame] | 24 | android:paddingEnd="@dimen/qs_panel_padding" |
Jason Monk | db50de8 | 2016-02-03 15:34:54 -0500 | [diff] [blame] | 25 | android:background="@drawable/btn_borderless_rect" |
| 26 | android:gravity="center"> |
| 27 | |
| 28 | <ImageView |
| 29 | android:id="@*android:id/up" |
Muyuan Li | 0e9f538 | 2016-04-27 15:51:15 -0700 | [diff] [blame] | 30 | android:layout_width="@dimen/qs_detail_image_width" |
| 31 | android:layout_height="@dimen/qs_detail_image_height" |
| 32 | android:layout_marginEnd="@dimen/qs_detail_back_margin_end" |
| 33 | android:padding="@dimen/qs_detail_image_padding" |
Jason Monk | db50de8 | 2016-02-03 15:34:54 -0500 | [diff] [blame] | 34 | android:clickable="true" |
| 35 | android:background="?android:attr/selectableItemBackground" |
Jason Monk | b83d087 | 2016-03-16 13:30:43 -0400 | [diff] [blame] | 36 | android:contentDescription="@*android:string/action_bar_up_description" |
Jason Monk | db50de8 | 2016-02-03 15:34:54 -0500 | [diff] [blame] | 37 | android:src="?android:attr/homeAsUpIndicator" /> |
John Spurlock | 7f8f22a | 2014-07-02 18:54:17 -0400 | [diff] [blame] | 38 | |
| 39 | <TextView |
| 40 | android:id="@android:id/title" |
Muyuan Li | 0e9f538 | 2016-04-27 15:51:15 -0700 | [diff] [blame] | 41 | android:paddingLeft="@dimen/qs_detail_header_text_padding" |
John Spurlock | 7f8f22a | 2014-07-02 18:54:17 -0400 | [diff] [blame] | 42 | android:layout_width="0dp" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:layout_weight="1" |
| 45 | android:textAppearance="@style/TextAppearance.QS.DetailHeader" /> |
| 46 | |
Muyuan Li | 0e9f538 | 2016-04-27 15:51:15 -0700 | [diff] [blame] | 47 | <ImageView |
| 48 | android:id="@+id/settings" |
| 49 | android:layout_width="@dimen/qs_detail_image_width" |
| 50 | android:layout_height="@dimen/qs_detail_image_height" |
| 51 | android:background="?android:attr/selectableItemBackground" |
| 52 | android:padding="@dimen/qs_detail_image_padding" |
| 53 | android:src="@drawable/ic_settings" |
| 54 | android:visibility="gone"/> |
| 55 | |
John Spurlock | 7f8f22a | 2014-07-02 18:54:17 -0400 | [diff] [blame] | 56 | <Switch |
| 57 | android:id="@android:id/toggle" |
| 58 | android:layout_width="wrap_content" |
| 59 | android:layout_height="wrap_content" |
| 60 | android:clickable="false" |
| 61 | android:textAppearance="@style/TextAppearance.QS.DetailHeader" /> |
| 62 | |
Jason Monk | db50de8 | 2016-02-03 15:34:54 -0500 | [diff] [blame] | 63 | </com.android.keyguard.AlphaOptimizedLinearLayout> |