Sudheer Shanka | 1c7cda8 | 2015-12-31 14:46:02 +0000 | [diff] [blame] | 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 | --> |
Jason Monk | 28df4ed | 2017-03-23 10:25:37 -0400 | [diff] [blame] | 17 | <com.android.systemui.qs.tileimpl.ButtonRelativeLayout |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
Jason Monk | 6f77056 | 2017-03-17 10:04:31 -0400 | [diff] [blame] | 20 | android:layout_height="wrap_content" |
Jason Monk | df64e07 | 2017-03-23 10:39:14 -0400 | [diff] [blame] | 21 | android:clipChildren="false" |
| 22 | android:clipToPadding="false" |
Jason Monk | 6f77056 | 2017-03-17 10:04:31 -0400 | [diff] [blame] | 23 | android:minHeight="48dp" |
Jason Monk | 209e03e | 2017-04-11 13:57:45 -0400 | [diff] [blame] | 24 | android:paddingTop="12dp"> |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 25 | <LinearLayout |
| 26 | android:id="@+id/label_group" |
Jason Monk | a3c6cf0 | 2017-04-20 09:07:57 -0400 | [diff] [blame] | 27 | android:layout_width="match_parent" |
Sudheer Shanka | 1c7cda8 | 2015-12-31 14:46:02 +0000 | [diff] [blame] | 28 | android:layout_height="wrap_content" |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 29 | android:layout_alignParentTop="true" |
Jason Monk | a3c6cf0 | 2017-04-20 09:07:57 -0400 | [diff] [blame] | 30 | android:gravity="center" |
Jason Monk | df64e07 | 2017-03-23 10:39:14 -0400 | [diff] [blame] | 31 | android:clipChildren="false" |
| 32 | android:clipToPadding="false" |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 33 | android:orientation="horizontal"> |
Jason Monk | 209e03e | 2017-04-11 13:57:45 -0400 | [diff] [blame] | 34 | <Space |
| 35 | android:id="@+id/expand_space" |
| 36 | android:layout_width="22dp" |
| 37 | android:layout_height="0dp" /> |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 38 | |
| 39 | <TextView |
| 40 | android:id="@+id/tile_label" |
Sudheer Shanka | 40400a6 | 2016-02-23 11:42:11 +0000 | [diff] [blame] | 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="wrap_content" |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 43 | android:clickable="false" |
Sudheer Shanka | 40400a6 | 2016-02-23 11:42:11 +0000 | [diff] [blame] | 44 | android:padding="0dp" |
Jason Monk | df64e07 | 2017-03-23 10:39:14 -0400 | [diff] [blame] | 45 | android:gravity="center" |
Amin Shaikh | 2f90675 | 2018-03-23 11:15:16 -0400 | [diff] [blame] | 46 | android:ellipsize="marquee" |
Fabian Kozynski | 14016e3 | 2019-04-15 11:21:12 -0400 | [diff] [blame] | 47 | android:textAppearance="@style/TextAppearance.QS.TileLabel"/> |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 48 | |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 49 | <ImageView android:id="@+id/restricted_padlock" |
Sudheer Shanka | 40400a6 | 2016-02-23 11:42:11 +0000 | [diff] [blame] | 50 | 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 Monk | 209e03e | 2017-04-11 13:57:45 -0400 | [diff] [blame] | 57 | |
| 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 DC | d205de2 | 2017-10-24 21:17:03 +0200 | [diff] [blame] | 64 | android:tint="?android:attr/textColorPrimary" |
| 65 | android:visibility="gone" /> |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 66 | </LinearLayout> |
| 67 | |
Jason Monk | 6f77056 | 2017-03-17 10:04:31 -0400 | [diff] [blame] | 68 | <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 Shaikh | 2f90675 | 2018-03-23 11:15:16 -0400 | [diff] [blame] | 76 | android:ellipsize="marquee" |
Amin Shaikh | 4c9048c | 2018-04-20 11:27:46 -0400 | [diff] [blame] | 77 | android:singleLine="true" |
Jason Monk | 6f77056 | 2017-03-17 10:04:31 -0400 | [diff] [blame] | 78 | android:padding="0dp" |
| 79 | android:visibility="gone" |
| 80 | android:gravity="center" |
Fabian Kozynski | e0abce0 | 2018-10-30 09:14:07 -0400 | [diff] [blame] | 81 | android:textAppearance="@style/TextAppearance.QS.TileLabel.Secondary" |
Amin Shaikh | 1b48005 | 2018-05-11 19:10:35 -0400 | [diff] [blame] | 82 | android:textColor="?android:attr/textColorSecondary"/> |
Jason Monk | 6f77056 | 2017-03-17 10:04:31 -0400 | [diff] [blame] | 83 | |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 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" |
Jason Monk | 209e03e | 2017-04-11 13:57:45 -0400 | [diff] [blame] | 92 | android:visibility="gone" |
Jason Monk | f12710a | 2017-03-16 13:26:13 -0400 | [diff] [blame] | 93 | android:alpha="?android:attr/disabledAlpha" |
| 94 | android:background="?android:attr/colorForeground"/> |
| 95 | |
Jason Monk | 28df4ed | 2017-03-23 10:25:37 -0400 | [diff] [blame] | 96 | </com.android.systemui.qs.tileimpl.ButtonRelativeLayout> |