From 37714d62238efb754a689e6bbcadd8d8f934f704 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 11 Jun 2017 13:25:16 -0700 Subject: Switch to ConstraintLayout --- library/src/main/res/layout/kau_preference.xml | 82 +++++++++++++++----------- library/src/main/res/values/strings.xml | 1 + 2 files changed, 50 insertions(+), 33 deletions(-) (limited to 'library/src/main/res') diff --git a/library/src/main/res/layout/kau_preference.xml b/library/src/main/res/layout/kau_preference.xml index 265015a..5123b27 100644 --- a/library/src/main/res/layout/kau_preference.xml +++ b/library/src/main/res/layout/kau_preference.xml @@ -1,68 +1,84 @@ - + - + android:maxWidth="48dp" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_bias="0.5" + tools:layout_editor_absoluteX="0dp" /> - + + app:layout_constraintBottom_toTopOf="@+id/kau_pref_desc" + app:layout_constraintEnd_toStartOf="@id/kau_pref_inner_frame" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toEndOf="@id/kau_pref_icon" + app:layout_constraintTop_toTopOf="parent" + app:layout_goneMarginBottom="16dp" + tools:layout_editor_absoluteX="-175dp" /> - - + android:textColor="?android:attr/textColorSecondary" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toStartOf="@id/kau_pref_inner_frame" + app:layout_constraintHorizontal_bias="0" + app:layout_constraintStart_toEndOf="@id/kau_pref_icon" + app:layout_constraintTop_toBottomOf="@+id/kau_pref_title" + tools:layout_editor_absoluteX="-175dp" /> - + \ No newline at end of file diff --git a/library/src/main/res/values/strings.xml b/library/src/main/res/values/strings.xml index 10a73b9..ed939fa 100644 --- a/library/src/main/res/values/strings.xml +++ b/library/src/main/res/values/strings.xml @@ -14,4 +14,5 @@ Color Palette Title Placeholder + Pref Icon -- cgit v1.2.3