aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/res/layout/kau_search_item.xml
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-26 14:37:18 -0700
committerAllan Wang <me@allanwang.ca>2017-06-26 14:37:18 -0700
commitc09b59f09a24d79ff306aea7dd86e6ca2b2c3208 (patch)
tree60a872c925abd99fe4f9494a9b51c3170fe6010d /library/src/main/res/layout/kau_search_item.xml
parentc9302a7b0f3c66b3514f1f5b83c86757db33008a (diff)
downloadkau-c09b59f09a24d79ff306aea7dd86e6ca2b2c3208.tar.gz
kau-c09b59f09a24d79ff306aea7dd86e6ca2b2c3208.tar.bz2
kau-c09b59f09a24d79ff306aea7dd86e6ca2b2c3208.zip
Improve search item layout
Diffstat (limited to 'library/src/main/res/layout/kau_search_item.xml')
-rw-r--r--library/src/main/res/layout/kau_search_item.xml14
1 files changed, 9 insertions, 5 deletions
diff --git a/library/src/main/res/layout/kau_search_item.xml b/library/src/main/res/layout/kau_search_item.xml
index 4de4ed6..efd7260 100644
--- a/library/src/main/res/layout/kau_search_item.xml
+++ b/library/src/main/res/layout/kau_search_item.xml
@@ -23,7 +23,7 @@
<TextView
android:id="@+id/search_title"
android:layout_width="0dp"
- android:layout_height="0dp"
+ android:layout_height="wrap_content"
android:layout_gravity="start|center_vertical"
android:layout_weight="1"
android:ellipsize="end"
@@ -33,24 +33,28 @@
android:paddingStart="@dimen/kau_search_key_line_8"
android:textIsSelectable="false"
android:textSize="@dimen/kau_search_text_small"
+ app:layout_constraintBottom_toTopOf="@+id/search_desc"
+ app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/search_icon"
- app:layout_constraintTop_toTopOf="parent" />
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintVertical_bias="0.5" />
<TextView
- android:id="@+id/search_desc"
+ android:id="@id/search_desc"
android:layout_width="0dp"
- android:layout_height="0dp"
+ android:layout_height="wrap_content"
android:layout_gravity="start|center_vertical"
android:layout_weight="1"
android:ellipsize="end"
- android:visibility="gone"
android:gravity="start|center_vertical"
android:maxLines="1"
android:paddingEnd="@dimen/kau_search_key_line_16"
android:paddingStart="@dimen/kau_search_key_line_8"
android:textIsSelectable="false"
android:textSize="@dimen/kau_search_text_micro"
+ android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/search_icon"
app:layout_constraintTop_toBottomOf="@id/search_title" />