2017-09-28 13:06:48 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-03-31 07:34:05 +00:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-09-28 13:06:48 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2017-11-14 19:32:50 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-03-31 07:34:05 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2017-11-14 19:32:50 +00:00
|
|
|
android:orientation="horizontal">
|
2017-11-14 18:51:44 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/suggestion_search"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_toLeftOf="@id/suggestion_insert"
|
|
|
|
android:layout_toStartOf="@id/suggestion_insert"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:paddingTop="8dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/item_suggestion_icon"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"
|
2020-03-25 15:23:47 +00:00
|
|
|
tools:src="?attr/ic_history"/>
|
2017-11-14 18:51:44 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/item_suggestion_query"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
|
|
android:textSize="14sp"
|
|
|
|
tools:ignore="RtlHardcoded"
|
|
|
|
tools:text="Search query"/>
|
|
|
|
</LinearLayout>
|
2017-09-28 13:06:48 +00:00
|
|
|
|
2017-11-14 19:32:50 +00:00
|
|
|
<LinearLayout
|
2017-11-14 18:51:44 +00:00
|
|
|
android:id="@+id/suggestion_insert"
|
2017-11-14 19:32:50 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2017-11-14 18:51:44 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2017-11-14 19:32:50 +00:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:paddingBottom="8dp"
|
2017-11-14 23:58:13 +00:00
|
|
|
android:paddingTop="10dp">
|
2017-11-14 19:32:50 +00:00
|
|
|
|
|
|
|
<ImageView
|
2017-11-14 23:58:13 +00:00
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
2017-11-14 19:32:50 +00:00
|
|
|
android:layout_gravity="center"
|
2020-03-31 07:34:05 +00:00
|
|
|
app:srcCompat="?attr/ic_search_add"
|
2017-11-14 19:32:50 +00:00
|
|
|
tools:ignore="ContentDescription,RtlHardcoded"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
2017-11-14 18:51:44 +00:00
|
|
|
</RelativeLayout>
|