blob: da80633f944bb45924841c7727b3414c1660fc6a [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"
Jason Monkecfbddb2017-05-26 13:19:38 -040023 android:paddingBottom="@dimen/qs_detail_items_padding_top"
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"
Jason Monkecfbddb2017-05-26 13:19:38 -040026 android:orientation="vertical"
Jason Monkdb50de82016-02-03 15:34:54 -050027 android:gravity="center">
28
Jason Monkecfbddb2017-05-26 13:19:38 -040029 <com.android.systemui.ResizingSpace
30 android:layout_width="match_parent"
31 android:layout_height="@dimen/qs_detail_margin_top" />
John Spurlock7f8f22a2014-07-02 18:54:17 -040032
Jason Monkecfbddb2017-05-26 13:19:38 -040033 <LinearLayout
34 android:layout_width="match_parent"
John Spurlock7f8f22a2014-07-02 18:54:17 -040035 android:layout_height="wrap_content"
Jason Monkecfbddb2017-05-26 13:19:38 -040036 android:orientation="horizontal">
37
38 <TextView
39 android:id="@android:id/title"
40 android:paddingStart="@dimen/qs_detail_header_text_padding"
41 android:layout_width="0dp"
42 android:layout_height="wrap_content"
43 android:layout_weight="1"
44 android:textDirection="locale"
45 android:textAppearance="@style/TextAppearance.QS.DetailHeader" />
46
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
Fabian Kozynski8a867952019-12-02 10:32:00 -050056 <ViewStub
57 android:id="@+id/toggle_stub"
58 android:inflatedId="@+id/toggle"
59 android:layout="@layout/qs_detail_switch"
Jason Monkecfbddb2017-05-26 13:19:38 -040060 android:layout_width="wrap_content"
Fabian Kozynski8a867952019-12-02 10:32:00 -050061 android:layout_height="wrap_content"/>
Jason Monkecfbddb2017-05-26 13:19:38 -040062
63 </LinearLayout>
John Spurlock7f8f22a2014-07-02 18:54:17 -040064
Jason Monkdb50de82016-02-03 15:34:54 -050065</com.android.keyguard.AlphaOptimizedLinearLayout>