Does drag-and-drop reordering, supports adding / removing locales, suggestions, search, removes locales already selected in the user preferences. Bug: 25800339 Change-Id: Iffe7b9810c77ec93a84d848ab20b2ba405249676
80 lines
3.0 KiB
XML
80 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<com.android.settings.localepicker.LocaleDragCell
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:baselineAligned="false"
|
|
android:layoutDirection="locale"
|
|
android:textDirection="locale">
|
|
|
|
<TextView
|
|
android:id="@+id/miniLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginLeft="12dp"
|
|
android:layout_marginRight="12dp"
|
|
tools:text="22"
|
|
android:textColor="?android:attr/colorAccent"
|
|
android:minWidth="20sp"
|
|
android:textAlignment="textEnd"
|
|
android:gravity="center_vertical|end"
|
|
android:background="?android:colorBackground"/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/checkbox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="20sp"
|
|
android:layout_marginLeft="6dp"
|
|
android:layout_marginRight="6dp"
|
|
android:visibility="gone"
|
|
android:background="?android:colorBackground"/>
|
|
|
|
<TextView
|
|
android:id="@+id/label"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:padding="12dp"
|
|
tools:text="France"
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
android:background="?android:colorBackground"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/l10nWarn"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:src="@android:drawable/stat_sys_warning"
|
|
android:focusableInTouchMode="false"
|
|
android:focusable="false"
|
|
android:paddingStart="12dp"
|
|
android:paddingEnd="12dp"
|
|
android:tint="?android:attr/colorAccent"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/dragHandle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center_vertical"
|
|
android:src="@drawable/drag_handle"/>
|
|
|
|
</com.android.settings.localepicker.LocaleDragCell>
|