blob: 8352e30c72e5b1d829902c088197d4d6d5bcca0c [file] [log] [blame]
John Spurlock7f8f22a2014-07-02 18:54:17 -04001<?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 Jaggi43f43722014-12-10 22:17:44 +010017<com.android.keyguard.AlphaOptimizedLinearLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
Adrian Roos37f100e2014-08-13 22:24:22 +020019 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
Muyuan Li0e9f5382016-04-27 15:51:15 -070021 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 Monkdb50de82016-02-03 15:34:54 -050024 android:paddingEnd="@dimen/qs_panel_padding"
Jason Monkdb50de82016-02-03 15:34:54 -050025 android:background="@drawable/btn_borderless_rect"
26 android:gravity="center">
27
28 <ImageView
29 android:id="@*android:id/up"
Muyuan Li0e9f5382016-04-27 15:51:15 -070030 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 Monkdb50de82016-02-03 15:34:54 -050034 android:clickable="true"
35 android:background="?android:attr/selectableItemBackground"
Jason Monkb83d0872016-03-16 13:30:43 -040036 android:contentDescription="@*android:string/action_bar_up_description"
Jason Monkdb50de82016-02-03 15:34:54 -050037 android:src="?android:attr/homeAsUpIndicator" />
John Spurlock7f8f22a2014-07-02 18:54:17 -040038
39 <TextView
40 android:id="@android:id/title"
Muyuan Li0e9f5382016-04-27 15:51:15 -070041 android:paddingLeft="@dimen/qs_detail_header_text_padding"
John Spurlock7f8f22a2014-07-02 18:54:17 -040042 android:layout_width="0dp"
43 android:layout_height="wrap_content"
44 android:layout_weight="1"
45 android:textAppearance="@style/TextAppearance.QS.DetailHeader" />
46
Muyuan Li0e9f5382016-04-27 15:51:15 -070047 <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 Spurlock7f8f22a2014-07-02 18:54:17 -040056 <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 Monkdb50de82016-02-03 15:34:54 -050063</com.android.keyguard.AlphaOptimizedLinearLayout>