1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-16 23:04:56 +00:00
NewPipe/app/src/main/res/layout/item_search_suggestion.xml

72 lines
2.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-10-09 18:24:02 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/suggestion_search"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_alignParentStart="true"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_toStartOf="@id/suggestion_insert"
android:layout_toLeftOf="@id/suggestion_insert"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true"
2020-10-09 18:24:02 +00:00
android:paddingTop="8dp"
android:paddingBottom="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-10-09 18:24:02 +00:00
tools:src="?attr/ic_history" />
<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"
2020-10-09 18:24:02 +00:00
tools:text="Search query" />
</LinearLayout>
<LinearLayout
android:id="@+id/suggestion_insert"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 18:24:02 +00:00
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
android:paddingLeft="16dp"
2020-10-09 18:24:02 +00:00
android:paddingTop="10dp"
android:paddingRight="16dp"
2020-10-09 18:24:02 +00:00
android:paddingBottom="8dp">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_gravity="center"
app:srcCompat="?attr/ic_search_add"
2020-10-09 18:24:02 +00:00
tools:ignore="ContentDescription,RtlHardcoded" />
</LinearLayout>
</RelativeLayout>