blob: 81d44cfa49dda4384c20e4a679e4549a01dc61dd [file] [log] [blame]
Sudheer Shanka1c7cda82015-12-31 14:46:02 +00001<?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-->
Jason Monk28df4ed2017-03-23 10:25:37 -040017<com.android.systemui.qs.tileimpl.ButtonRelativeLayout
Jason Monkf12710a2017-03-16 13:26:13 -040018 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
Jason Monk6f770562017-03-17 10:04:31 -040020 android:layout_height="wrap_content"
Jason Monkdf64e072017-03-23 10:39:14 -040021 android:clipChildren="false"
22 android:clipToPadding="false"
Jason Monk6f770562017-03-17 10:04:31 -040023 android:minHeight="48dp"
Jason Monk209e03e2017-04-11 13:57:45 -040024 android:paddingTop="12dp">
Jason Monkf12710a2017-03-16 13:26:13 -040025 <LinearLayout
26 android:id="@+id/label_group"
Jason Monka3c6cf02017-04-20 09:07:57 -040027 android:layout_width="match_parent"
Sudheer Shanka1c7cda82015-12-31 14:46:02 +000028 android:layout_height="wrap_content"
Jason Monkf12710a2017-03-16 13:26:13 -040029 android:layout_alignParentTop="true"
Jason Monka3c6cf02017-04-20 09:07:57 -040030 android:gravity="center"
Jason Monkdf64e072017-03-23 10:39:14 -040031 android:clipChildren="false"
32 android:clipToPadding="false"
Jason Monkf12710a2017-03-16 13:26:13 -040033 android:orientation="horizontal">
Jason Monk209e03e2017-04-11 13:57:45 -040034 <Space
35 android:id="@+id/expand_space"
36 android:layout_width="22dp"
37 android:layout_height="0dp" />
Jason Monkf12710a2017-03-16 13:26:13 -040038
39 <TextView
40 android:id="@+id/tile_label"
Sudheer Shanka40400a62016-02-23 11:42:11 +000041 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
Jason Monkf12710a2017-03-16 13:26:13 -040043 android:clickable="false"
Sudheer Shanka40400a62016-02-23 11:42:11 +000044 android:padding="0dp"
Jason Monkdf64e072017-03-23 10:39:14 -040045 android:gravity="center"
Amin Shaikh2f906752018-03-23 11:15:16 -040046 android:ellipsize="marquee"
Fabian Kozynski14016e32019-04-15 11:21:12 -040047 android:textAppearance="@style/TextAppearance.QS.TileLabel"/>
Jason Monkf12710a2017-03-16 13:26:13 -040048
Jason Monkf12710a2017-03-16 13:26:13 -040049 <ImageView android:id="@+id/restricted_padlock"
Sudheer Shanka40400a62016-02-23 11:42:11 +000050 android:layout_width="@dimen/qs_tile_text_size"
51 android:layout_height="match_parent"
52 android:paddingBottom="@dimen/qs_tile_text_size"
53 android:src="@drawable/ic_info"
54 android:layout_marginLeft="@dimen/restricted_padlock_pading"
55 android:scaleType="centerInside"
56 android:visibility="gone" />
Jason Monk209e03e2017-04-11 13:57:45 -040057
58 <ImageView
59 android:id="@+id/expand_indicator"
60 android:layout_marginStart="4dp"
61 android:layout_width="18dp"
62 android:layout_height="match_parent"
63 android:src="@drawable/qs_dual_tile_caret"
Adrian DCd205de22017-10-24 21:17:03 +020064 android:tint="?android:attr/textColorPrimary"
65 android:visibility="gone" />
Jason Monkf12710a2017-03-16 13:26:13 -040066 </LinearLayout>
67
Jason Monk6f770562017-03-17 10:04:31 -040068 <TextView
69 android:id="@+id/app_label"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_alignStart="@id/label_group"
73 android:layout_alignEnd="@id/label_group"
74 android:layout_below="@id/label_group"
75 android:clickable="false"
Amin Shaikh2f906752018-03-23 11:15:16 -040076 android:ellipsize="marquee"
Amin Shaikh4c9048c2018-04-20 11:27:46 -040077 android:singleLine="true"
Jason Monk6f770562017-03-17 10:04:31 -040078 android:padding="0dp"
79 android:visibility="gone"
80 android:gravity="center"
Fabian Kozynskie0abce02018-10-30 09:14:07 -040081 android:textAppearance="@style/TextAppearance.QS.TileLabel.Secondary"
Amin Shaikh1b480052018-05-11 19:10:35 -040082 android:textColor="?android:attr/textColorSecondary"/>
Jason Monk6f770562017-03-17 10:04:31 -040083
Jason Monkf12710a2017-03-16 13:26:13 -040084 <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"
Jason Monk209e03e2017-04-11 13:57:45 -040092 android:visibility="gone"
Jason Monkf12710a2017-03-16 13:26:13 -040093 android:alpha="?android:attr/disabledAlpha"
94 android:background="?android:attr/colorForeground"/>
95
Jason Monk28df4ed2017-03-23 10:25:37 -040096</com.android.systemui.qs.tileimpl.ButtonRelativeLayout>