LibreTube/app/src/main/res/layout/suggestion_row.xml

48 lines
1.9 KiB
XML
Raw Normal View History

2022-06-10 14:28:33 +05:30
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2022-06-27 22:16:44 +05:30
xmlns:app="http://schemas.android.com/apk/res-auto"
2023-01-31 22:47:45 +05:30
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2023-02-12 16:57:57 +05:30
android:layout_height="wrap_content"
2022-06-27 22:47:52 +05:30
android:background="?android:attr/selectableItemBackground"
android:gravity="center_vertical"
2023-02-12 16:57:57 +05:30
android:orientation="horizontal"
android:paddingHorizontal="16dp"
android:paddingVertical="8dp">
2022-06-10 14:28:33 +05:30
<com.github.libretube.ui.views.DrawableTextView
2022-06-10 14:28:33 +05:30
android:id="@+id/suggestion_text"
2022-06-27 22:16:44 +05:30
android:layout_width="0dp"
2022-06-10 14:28:33 +05:30
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
2023-02-12 16:57:57 +05:30
android:layout_weight="1"
android:drawablePadding="15dp"
android:textAlignment="viewStart"
app:drawableStartCompat="@drawable/ic_search"
tools:text="Suggestion item" />
2022-06-10 14:28:33 +05:30
2023-02-12 16:57:57 +05:30
<ImageView
android:id="@+id/delete_history"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="5dp"
android:src="@drawable/ic_close"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shapeAppearanceOverlay="@style/roundedImageViewRounded" />
2022-06-27 22:16:44 +05:30
<ImageView
android:id="@+id/arrow"
android:layout_width="wrap_content"
2022-06-27 22:16:44 +05:30
android:layout_height="wrap_content"
android:background="?attr/selectableItemBackgroundBorderless"
2022-06-27 22:16:44 +05:30
android:padding="5dp"
android:src="@drawable/ic_arrow_up_left"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shapeAppearanceOverlay="@style/roundedImageViewRounded" />
</LinearLayout>