aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/res/layout/kau_search_item.xml
blob: 20f3ef2a37ddb51d1b93a750aa0705c6acbf72e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/search_item_frame"
    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>