AquaStream/app/src/main/res/layout/search_result_compact.xml

79 lines
3.2 KiB
XML
Raw Normal View History

2021-05-15 23:37:42 +00:00
<?xml version="1.0" encoding="utf-8"?>
2022-01-29 18:57:19 +00:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2021-05-15 23:37:42 +00:00
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="80dp"
android:layout_marginBottom="0dp"
2022-01-29 18:57:19 +00:00
android:layoutDirection="ltr">
2021-05-15 23:37:42 +00:00
<androidx.cardview.widget.CardView
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2022-04-27 19:48:27 +00:00
android:id="@+id/background_card"
2021-05-15 23:37:42 +00:00
android:layout_margin="2dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="2dp"
android:elevation="0dp"
2021-11-27 18:49:51 +00:00
app:cardCornerRadius="@dimen/rounded_image_radius"
2021-06-06 18:06:01 +00:00
app:cardBackgroundColor="?attr/boxItemBackground"
2021-05-15 23:37:42 +00:00
android:clickable="true"
2022-01-29 18:57:19 +00:00
android:focusable="true">
2021-05-15 23:37:42 +00:00
<androidx.cardview.widget.CardView
android:elevation="0dp"
2021-11-27 18:49:51 +00:00
app:cardCornerRadius="@dimen/rounded_image_radius"
2021-05-15 23:37:42 +00:00
android:layout_width="54dp"
android:layout_height="match_parent">
2022-01-29 18:57:19 +00:00
2021-05-15 23:37:42 +00:00
<ImageView
android:layout_gravity="left"
android:id="@+id/imageView"
android:scaleType="centerCrop"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2022-01-29 18:57:19 +00:00
tools:ignore="RtlHardcoded" />
2021-05-15 23:37:42 +00:00
</androidx.cardview.widget.CardView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center_vertical"
android:layout_marginStart="64dp">
2022-01-29 18:57:19 +00:00
2021-05-15 23:37:42 +00:00
<TextView
tools:text="@string/no_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="17sp"
2021-06-06 18:06:01 +00:00
android:textColor="?attr/textColor"
2021-05-15 23:37:42 +00:00
android:id="@+id/imageText"
android:textStyle="bold"
2022-01-29 18:57:19 +00:00
android:maxLines="3" />
2021-05-15 23:37:42 +00:00
<TextView
tools:text="@string/no_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-06-06 18:06:01 +00:00
android:textColor="?attr/grayTextColor"
2021-05-15 23:37:42 +00:00
android:id="@+id/imageTextExtra"
android:textSize="13sp"
android:textStyle="bold"
2022-01-29 18:57:19 +00:00
android:maxLines="3" />
2021-05-15 23:37:42 +00:00
<TextView
tools:text="Rated 4.13"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-06-06 18:06:01 +00:00
android:textColor="?attr/colorPrimary"
2021-05-15 23:37:42 +00:00
android:id="@+id/imageTextProvider"
2022-01-29 18:57:19 +00:00
android:maxLines="1" />
2021-05-15 23:37:42 +00:00
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>