1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2016 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<com.android.systemui.qs.tileimpl.ButtonRelativeLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:clipChildren="false"
22    android:clipToPadding="false"
23    android:minHeight="48dp"
24    android:paddingTop="12dp">
25    <LinearLayout
26        android:id="@+id/label_group"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:layout_alignParentTop="true"
30        android:gravity="center"
31        android:clipChildren="false"
32        android:clipToPadding="false"
33        android:orientation="horizontal">
34        <Space
35            android:id="@+id/expand_space"
36            android:layout_width="22dp"
37            android:layout_height="0dp" />
38
39        <TextView
40            android:id="@+id/tile_label"
41            android:layout_width="wrap_content"
42            android:layout_height="wrap_content"
43            android:clickable="false"
44            android:maxLines="2"
45            android:padding="0dp"
46            android:gravity="center"
47            android:ellipsize="end"
48            android:textAppearance="@style/TextAppearance.QS.TileLabel"
49            android:textColor="?android:attr/textColorPrimary"/>
50
51        <ImageView android:id="@+id/restricted_padlock"
52            android:layout_width="@dimen/qs_tile_text_size"
53            android:layout_height="match_parent"
54            android:paddingBottom="@dimen/qs_tile_text_size"
55            android:src="@drawable/ic_info"
56            android:layout_marginLeft="@dimen/restricted_padlock_pading"
57            android:scaleType="centerInside"
58            android:visibility="gone" />
59
60        <ImageView
61            android:id="@+id/expand_indicator"
62            android:layout_marginStart="4dp"
63            android:layout_width="18dp"
64            android:layout_height="match_parent"
65            android:src="@drawable/qs_dual_tile_caret"
66            android:tint="?android:attr/textColorPrimary" />
67    </LinearLayout>
68
69    <TextView
70        android:id="@+id/app_label"
71        android:layout_width="wrap_content"
72        android:layout_height="wrap_content"
73        android:layout_alignStart="@id/label_group"
74        android:layout_alignEnd="@id/label_group"
75        android:layout_below="@id/label_group"
76        android:clickable="false"
77        android:maxLines="1"
78        android:padding="0dp"
79        android:visibility="gone"
80        android:gravity="center"
81        android:textAppearance="@style/TextAppearance.QS.TileLabel"
82        android:textColor="?android:attr/textColorPrimary"/>
83
84    <View
85        android:id="@+id/underline"
86        android:layout_width="30dp"
87        android:layout_height="1dp"
88        android:layout_marginTop="2dp"
89        android:layout_alignStart="@id/label_group"
90        android:layout_alignEnd="@id/label_group"
91        android:layout_below="@id/label_group"
92        android:visibility="gone"
93        android:alpha="?android:attr/disabledAlpha"
94        android:background="?android:attr/colorForeground"/>
95
96</com.android.systemui.qs.tileimpl.ButtonRelativeLayout>
97