1<?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"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:minHeight="?android:listPreferredItemHeight"
23    android:background="?android:colorBackground"
24    android:layout_marginTop="12dp"
25    android:layout_marginBottom="12dp"
26    android:layoutDirection="locale"
27    android:textDirection="locale">
28
29    <LinearLayout
30        android:id="@+id/numberLayout"
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content"
33        android:layout_centerVertical="true"
34        android:gravity="center_vertical|center_horizontal"
35        android:paddingStart="?android:attr/listPreferredItemPaddingStart">
36        <CheckBox
37            android:id="@+id/checkbox"
38            style="@style/LanguageCheckboxAndLabel"
39            android:layout_marginRight="0dp"
40            android:minWidth="24dp"
41            android:paddingEnd="-8dp"
42            android:clickable="false"
43            android:focusable="false"/>
44
45        <TextView
46            android:id="@+id/miniLabel"
47            style="@style/LanguageCheckboxAndLabel"
48            android:textColor="?android:attr/colorAccent"
49            android:minWidth="24dp"
50            android:gravity="center_vertical|center_horizontal"/>
51    </LinearLayout>
52
53    <androidx.constraintlayout.widget.ConstraintLayout
54        android:layout_width="wrap_content"
55        android:layout_height="wrap_content"
56        android:minHeight="?android:listPreferredItemHeight"
57        android:layout_toStartOf="@+id/dragHandle"
58        android:layout_toEndOf="@+id/numberLayout"
59        android:paddingStart="32dp">
60        <LinearLayout
61            android:layout_width="match_parent"
62            android:layout_height="wrap_content"
63            android:orientation="vertical"
64            app:layout_constraintStart_toStartOf="parent"
65            app:layout_constraintTop_toTopOf="parent"
66            app:layout_constraintEnd_toEndOf="parent"
67            app:layout_constraintBottom_toBottomOf="parent">
68            <TextView
69                android:id="@+id/label"
70                style="@style/LanguageCheckboxAndLabel"/>
71
72            <TextView
73                android:id="@+id/l10nWarn"
74                style="@style/LanguageCheckboxAndLabel"
75                android:textAppearance="?android:attr/textAppearanceListItemSecondary"
76                android:textColor="?android:textColorSecondary"
77                android:layout_marginTop="4dp"
78                android:text="@string/locale_not_translated"/>
79
80            <TextView
81                android:id="@+id/default_locale"
82                style="@style/LanguageCheckboxAndLabel"
83                android:textAppearance="?android:attr/textAppearanceListItemSecondary"
84                android:textColor="?android:textColorSecondary"
85                android:layout_marginTop="4dp"
86                android:text="@string/desc_current_default_language"/>
87
88        </LinearLayout>
89    </androidx.constraintlayout.widget.ConstraintLayout>
90
91    <ImageView
92        android:id="@+id/dragHandle"
93        android:layout_width="wrap_content"
94        android:layout_height="match_parent"
95        android:paddingStart="?android:attr/listPreferredItemPaddingStart"
96        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
97        android:src="@drawable/drag_handle"
98        android:importantForAccessibility="no"
99        android:layout_alignParentEnd="true"
100        android:layout_centerVertical="true"/>
101
102</com.android.settings.localepicker.LocaleDragCell>