diff options
author | Allan Wang <me@allanwang.ca> | 2017-08-21 14:39:00 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-08-30 12:24:19 -0400 |
commit | bf136d76b81835a44a0d9038b2a87806247296e8 (patch) | |
tree | 77e52c71086411aa3fc653dbda6672a186ed5aec /kpref-activity | |
parent | 17d18daaf591b4ab27e0a7df0bb1c3126e6488be (diff) | |
download | kau-bf136d76b81835a44a0d9038b2a87806247296e8.tar.gz kau-bf136d76b81835a44a0d9038b2a87806247296e8.tar.bz2 kau-bf136d76b81835a44a0d9038b2a87806247296e8.zip |
Fix/kpref-inner-frame-size (#42)
* Fix kpref item barriers
* Revert and add text constraint
Diffstat (limited to 'kpref-activity')
3 files changed, 8 insertions, 6 deletions
diff --git a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt index 6a9f6b0..3afa614 100644 --- a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt +++ b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt @@ -3,7 +3,6 @@ package ca.allanwang.kau.kpref.activity.items import android.view.View import android.widget.SeekBar import android.widget.TextView -import ca.allanwang.kau.kpref.KPrefException import ca.allanwang.kau.kpref.activity.GlobalOptions import ca.allanwang.kau.kpref.activity.R import ca.allanwang.kau.utils.tint diff --git a/kpref-activity/src/main/res/layout/kau_pref_core.xml b/kpref-activity/src/main/res/layout/kau_pref_core.xml index 4b5de56..183c53e 100644 --- a/kpref-activity/src/main/res/layout/kau_pref_core.xml +++ b/kpref-activity/src/main/res/layout/kau_pref_core.xml @@ -81,10 +81,10 @@ <android.support.constraint.Barrier android:id="@id/kau_pref_barrier" - android:layout_width="1dp" - android:layout_height="wrap_content" + android:layout_width="0dp" + android:layout_height="0dp" app:barrierDirection="end" - app:constraint_referenced_ids="kau_pref_title,kau_pref_desc,kau_pref_lower_frame" + app:constraint_referenced_ids="kau_pref_title,kau_pref_desc" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toTopOf="parent" /> diff --git a/kpref-activity/src/main/res/layout/kau_pref_text.xml b/kpref-activity/src/main/res/layout/kau_pref_text.xml index bae83f2..40fed2a 100644 --- a/kpref-activity/src/main/res/layout/kau_pref_text.xml +++ b/kpref-activity/src/main/res/layout/kau_pref_text.xml @@ -2,6 +2,9 @@ android:id="@id/kau_pref_inner_content" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:focusable="false" + android:background="@null" android:clickable="false" - android:background="@null" />
\ No newline at end of file + android:ellipsize="end" + android:focusable="false" + android:maxLines="3" + android:maxWidth="150dp" />
\ No newline at end of file |