UX fixes for the language draggable cell

This should bring things closer to the recommended UX guidelines.

It changes the way the checkbox / label play together,
and changes the "localization missing" warning icon to a string.
Also some cleanup of hard-coded styles and sizes.

Bug: 26758865
Bug: 26707846
Change-Id: I07a78a1e4a41122b91e895e363a217d3e9cacd40
This commit is contained in:
Mihai Nita
2016-02-05 11:55:45 -08:00
committed by Roozbeh Pournader
parent 4b796fa7d8
commit 7f78a4b723
7 changed files with 100 additions and 69 deletions

View File

@@ -17,8 +17,10 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layoutDirection="locale"
android:paddingTop="8dp"
android:paddingBottom="8dp"
android:orientation="vertical"
android:layoutDirection="locale"
android:textDirection="locale">
<com.android.settings.localepicker.LocaleRecyclerView
@@ -31,10 +33,11 @@
<Button
android:id="@+id/add_language"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="?android:listPreferredItemHeight"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:drawableStart="@drawable/ic_add_24dp"
android:drawablePadding="12dp"
android:minHeight="64dp"
android:drawablePadding="24dp"
android:textAlignment="textStart"
android:text="@string/add_a_language"
style="@style/Base.Widget.AppCompat.Button.Borderless"