blob: 7b932f39a0298a1d4ed61262701aeb53b5f345a0 [file] [log] [blame]
Mihai Nitad7d48fd2016-01-12 08:55:05 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<com.android.settings.localepicker.LocaleDragCell
18 xmlns:android="http://schemas.android.com/apk/res/android"
Mihai Nitad7d48fd2016-01-12 08:55:05 -080019 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080021 android:minHeight="?android:listPreferredItemHeight"
22 android:background="?android:colorBackground"
Mihai Nitad7d48fd2016-01-12 08:55:05 -080023 android:layoutDirection="locale"
24 android:textDirection="locale">
25
Mihai Nita7f78a4b2016-02-05 11:55:45 -080026 <CheckBox
27 android:id="@+id/checkbox"
28 style="@style/LanguageCheckboxAndLabel"
Raff Tsai360d2f22019-09-30 11:14:31 +080029 android:paddingStart="24dp"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080030 android:layout_toStartOf="@+id/dragHandle"/>
31
32 <TextView
33 android:id="@+id/label"
34 style="@style/LanguageCheckboxAndLabel"
Raff Tsai360d2f22019-09-30 11:14:31 +080035 android:paddingStart="56dp"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080036 android:layout_toStartOf="@+id/dragHandle"/>
37
Mihai Nitad7d48fd2016-01-12 08:55:05 -080038 <TextView
39 android:id="@+id/miniLabel"
Mihai Nitaa475fb12016-02-22 15:44:40 -080040 style="@style/LanguageCheckboxAndLabel"
Mihai Nitad7d48fd2016-01-12 08:55:05 -080041 android:layout_width="wrap_content"
Mihai Nitad7d48fd2016-01-12 08:55:05 -080042 android:textColor="?android:attr/colorAccent"
Mihai Nitaa475fb12016-02-22 15:44:40 -080043 android:minWidth="24sp"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080044 android:gravity="center_vertical|center_horizontal"
45 android:layout_alignTop="@id/checkbox"
46 android:layout_alignBottom="@id/checkbox"/>
Mihai Nitad7d48fd2016-01-12 08:55:05 -080047
48 <TextView
Mihai Nitad7d48fd2016-01-12 08:55:05 -080049 android:id="@+id/l10nWarn"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080050 style="@style/LanguageCheckboxAndLabel"
51 android:layout_marginTop="-28dp"
Raff Tsai360d2f22019-09-30 11:14:31 +080052 android:paddingStart="56dp"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080053 android:textAppearance="?android:attr/textAppearanceListItemSecondary"
54 android:textColor="?android:textColorSecondary"
55 android:text="@string/locale_not_translated"
56 android:layout_toStartOf="@+id/dragHandle"
57 android:layout_below="@id/label"/>
Mihai Nitad7d48fd2016-01-12 08:55:05 -080058
59 <ImageView
60 android:id="@+id/dragHandle"
61 android:layout_width="wrap_content"
62 android:layout_height="match_parent"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080063 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
64 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
Mihai Nitad7d48fd2016-01-12 08:55:05 -080065 android:layout_gravity="center_vertical"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080066 android:src="@drawable/drag_handle"
Mihai Nita8e7c7592016-04-21 14:56:59 -070067 android:importantForAccessibility="no"
Mihai Nita7f78a4b2016-02-05 11:55:45 -080068 android:layout_alignParentEnd="true"
69 android:layout_alignTop="@id/checkbox"
70 android:layout_alignBottom="@id/checkbox"/>
71
72 <View
73 android:layout_width="match_parent"
74 android:layout_height="1dp"
75 android:background="?android:attr/listDivider"
76 android:layout_alignParentBottom="true"/>
Mihai Nitad7d48fd2016-01-12 08:55:05 -080077
78</com.android.settings.localepicker.LocaleDragCell>