aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/res/layout/kau_search_item.xml
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-24 00:16:08 -0700
committerAllan Wang <me@allanwang.ca>2017-06-24 00:16:08 -0700
commit245791389eb09a56658d81e9894881584a712461 (patch)
treee1a393e8d6f7e328b0348cfc059bb6afd8194b23 /library/src/main/res/layout/kau_search_item.xml
parent9e31fdd4f15ec65cfd272fb1e814bfe0461f0d4f (diff)
downloadkau-245791389eb09a56658d81e9894881584a712461.tar.gz
kau-245791389eb09a56658d81e9894881584a712461.tar.bz2
kau-245791389eb09a56658d81e9894881584a712461.zip
Initialize searchview
Diffstat (limited to 'library/src/main/res/layout/kau_search_item.xml')
-rw-r--r--library/src/main/res/layout/kau_search_item.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/library/src/main/res/layout/kau_search_item.xml b/library/src/main/res/layout/kau_search_item.xml
new file mode 100644
index 0000000..fbdc826
--- /dev/null
+++ b/library/src/main/res/layout/kau_search_item.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/linearLayout"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/kau_search_item_height"
+ android:background="?android:attr/selectableItemBackground"
+ android:clickable="true"
+ android:focusable="true"
+ android:gravity="start|center_vertical"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:id="@+id/search_icon"
+ android:layout_width="@dimen/kau_search_icon"
+ android:layout_height="match_parent"
+ android:contentDescription="@string/kau_search"
+ android:scaleType="center" />
+
+ <TextView
+ android:id="@+id/search_text"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_gravity="start|center_vertical"
+ android:layout_weight="1"
+ android:ellipsize="end"
+ 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_small" />
+
+</LinearLayout> \ No newline at end of file