Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 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" |
Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 21 | android:minHeight="?android:listPreferredItemHeight" |
| 22 | android:background="?android:colorBackground" |
Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 23 | android:layoutDirection="locale" |
| 24 | android:textDirection="locale"> |
| 25 | |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 26 | <CheckBox |
| 27 | android:id="@+id/checkbox" |
| 28 | style="@style/LanguageCheckboxAndLabel" |
Raff Tsai | 360d2f2 | 2019-09-30 11:14:31 +0800 | [diff] [blame] | 29 | android:paddingStart="24dp" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 30 | android:layout_toStartOf="@+id/dragHandle"/> |
| 31 | |
| 32 | <TextView |
| 33 | android:id="@+id/label" |
| 34 | style="@style/LanguageCheckboxAndLabel" |
Raff Tsai | 360d2f2 | 2019-09-30 11:14:31 +0800 | [diff] [blame] | 35 | android:paddingStart="56dp" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 36 | android:layout_toStartOf="@+id/dragHandle"/> |
| 37 | |
Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 38 | <TextView |
| 39 | android:id="@+id/miniLabel" |
Mihai Nita | a475fb1 | 2016-02-22 15:44:40 -0800 | [diff] [blame] | 40 | style="@style/LanguageCheckboxAndLabel" |
Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 41 | android:layout_width="wrap_content" |
Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 42 | android:textColor="?android:attr/colorAccent" |
Mihai Nita | a475fb1 | 2016-02-22 15:44:40 -0800 | [diff] [blame] | 43 | android:minWidth="24sp" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 44 | android:gravity="center_vertical|center_horizontal" |
| 45 | android:layout_alignTop="@id/checkbox" |
| 46 | android:layout_alignBottom="@id/checkbox"/> |
Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 47 | |
| 48 | <TextView |
Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 49 | android:id="@+id/l10nWarn" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 50 | style="@style/LanguageCheckboxAndLabel" |
| 51 | android:layout_marginTop="-28dp" |
Raff Tsai | 360d2f2 | 2019-09-30 11:14:31 +0800 | [diff] [blame] | 52 | android:paddingStart="56dp" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 53 | 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 Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 58 | |
| 59 | <ImageView |
| 60 | android:id="@+id/dragHandle" |
| 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="match_parent" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 63 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 64 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
Mihai Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 65 | android:layout_gravity="center_vertical" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 66 | android:src="@drawable/drag_handle" |
Mihai Nita | 8e7c759 | 2016-04-21 14:56:59 -0700 | [diff] [blame] | 67 | android:importantForAccessibility="no" |
Mihai Nita | 7f78a4b | 2016-02-05 11:55:45 -0800 | [diff] [blame] | 68 | 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 Nita | d7d48fd | 2016-01-12 08:55:05 -0800 | [diff] [blame] | 77 | |
| 78 | </com.android.settings.localepicker.LocaleDragCell> |