aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/res/layout
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-14 15:27:16 -0700
committerAllan Wang <me@allanwang.ca>2017-06-14 15:27:16 -0700
commit078190b3603d3eaa50e3e3238cb9e6e124a9d970 (patch)
tree67636ee44b4d9704d4fcf4faed09da19cf2f5e62 /library/src/main/res/layout
parent1805793c7cea8a3c56a8111e0a80d7ac5da95f63 (diff)
downloadkau-078190b3603d3eaa50e3e3238cb9e6e124a9d970.tar.gz
kau-078190b3603d3eaa50e3e3238cb9e6e124a9d970.tar.bz2
kau-078190b3603d3eaa50e3e3238cb9e6e124a9d970.zip
Add pref item click options
Diffstat (limited to 'library/src/main/res/layout')
-rw-r--r--library/src/main/res/layout/kau_preference.xml16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/src/main/res/layout/kau_preference.xml b/library/src/main/res/layout/kau_preference.xml
index 677b0dc..c49951b 100644
--- a/library/src/main/res/layout/kau_preference.xml
+++ b/library/src/main/res/layout/kau_preference.xml
@@ -7,18 +7,18 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="?android:attr/selectableItemBackground"
android:baselineAligned="false"
android:clipToPadding="false"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
- android:orientation="horizontal"
- android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
- android:paddingStart="?android:attr/listPreferredItemPaddingStart">
+ android:orientation="horizontal">
<android.support.constraint.ConstraintLayout
android:id="@+id/kau_pref_container"
android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_height="wrap_content"
+ android:background="?android:attr/selectableItemBackground"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart">
<!--As per Android N, icons (24dp) are aligned to the left rather than centered-->
@@ -72,10 +72,10 @@
android:id="@+id/kau_pref_barrier"
android:layout_width="1dp"
android:layout_height="wrap_content"
- app:constraint_referenced_ids="kau_pref_title,kau_pref_desc"
app:barrierDirection="end"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintBottom_toBottomOf="parent" />
+ app:constraint_referenced_ids="kau_pref_title,kau_pref_desc"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:id="@id/kau_pref_inner_frame"