OSDN Git Service

0e0fe4c475bada88331faf95a5cc0064793c9b84
[android-x86/packages-apps-Settings.git] / res / layout / restricted_dialog_singlechoice.xml
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
18 <com.android.settings.CheckableLinearLayout
19         xmlns:android="http://schemas.android.com/apk/res/android"
20         android:layout_width="match_parent"
21         android:layout_height="wrap_content"
22         android:orientation="horizontal"
23         android:paddingStart="20dp"
24         android:paddingEnd="?android:attr/dialogPreferredPadding"
25         android:minHeight="?android:attr/listPreferredItemHeightSmall">
26     <CheckedTextView
27             android:id="@+id/text1"
28             android:layout_width="wrap_content"
29             android:layout_height="wrap_content"
30             android:textAppearance="?android:attr/textAppearanceMedium"
31             android:textColor="?android:attr/textColorAlertDialogListItem"
32             android:gravity="center_vertical"
33             android:drawableStart="?android:attr/listChoiceIndicatorSingle"
34             android:drawablePadding="20dp"
35             android:ellipsize="marquee" />
36     <ImageView
37             android:id="@+id/restricted_lock_icon"
38             android:layout_width="@dimen/restricted_lock_icon_size"
39             android:layout_height="@dimen/restricted_lock_icon_size"
40             android:src="@drawable/ic_settings_lock_outline"
41             android:layout_marginLeft="@dimen/restricted_lock_icon_padding"
42             android:baselineAlignBottom="true"
43             android:scaleType="centerInside"
44             android:visibility="gone" />
45 </com.android.settings.CheckableLinearLayout>