OSDN Git Service

resolve merge conflicts of 9e28f9a to nyc-dev-plus-aosp
[android-x86/packages-apps-Settings.git] / res / layout / locale_drag_cell.xml
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:tools="http://schemas.android.com/tools"
20               android:layout_width="match_parent"
21               android:layout_height="wrap_content"
22               android:minHeight="?android:listPreferredItemHeight"
23               android:background="?android:colorBackground"
24               android:layoutDirection="locale"
25               android:textDirection="locale">
26
27     <CheckBox
28         android:id="@+id/checkbox"
29         style="@style/LanguageCheckboxAndLabel"
30         tools:text="French"
31         android:paddingStart="16dp"
32         android:layout_toStartOf="@+id/dragHandle"/>
33
34     <TextView
35         android:id="@+id/label"
36         style="@style/LanguageCheckboxAndLabel"
37         tools:text="French"
38         android:paddingStart="48dp"
39         android:layout_toStartOf="@+id/dragHandle"/>
40
41     <TextView
42         android:id="@+id/miniLabel"
43         style="@style/LanguageCheckboxAndLabel"
44         android:layout_width="wrap_content"
45         tools:text="22"
46         android:textColor="?android:attr/colorAccent"
47         android:minWidth="24sp"
48         android:gravity="center_vertical|center_horizontal"
49         android:layout_alignTop="@id/checkbox"
50         android:layout_alignBottom="@id/checkbox"/>
51
52     <TextView
53         android:id="@+id/l10nWarn"
54         style="@style/LanguageCheckboxAndLabel"
55         android:layout_marginTop="-28dp"
56         android:paddingStart="48dp"
57         android:textAppearance="?android:attr/textAppearanceListItemSecondary"
58         android:textColor="?android:textColorSecondary"
59         android:text="@string/locale_not_translated"
60         android:layout_toStartOf="@+id/dragHandle"
61         android:layout_below="@id/label"/>
62
63     <ImageView
64         android:id="@+id/dragHandle"
65         android:layout_width="wrap_content"
66         android:layout_height="match_parent"
67         android:paddingStart="?android:attr/listPreferredItemPaddingStart"
68         android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
69         android:layout_gravity="center_vertical"
70         android:src="@drawable/drag_handle"
71         android:importantForAccessibility="no"
72         android:layout_alignParentEnd="true"
73         android:layout_alignTop="@id/checkbox"
74         android:layout_alignBottom="@id/checkbox"/>
75
76     <View
77         android:layout_width="match_parent"
78         android:layout_height="1dp"
79         android:background="?android:attr/listDivider"
80         android:layout_alignParentBottom="true"/>
81
82 </com.android.settings.localepicker.LocaleDragCell>