cloudstream/app/src/main/res/layout/search_result_super_compact.xml

77 lines
3.4 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="50dp"
2022-01-29 18:57:19 +00:00
android:layout_marginBottom="3dp">
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="10dp"
android:elevation="0dp"
2021-11-27 18:49:51 +00:00
app:cardCornerRadius="@dimen/rounded_image_radius"
2021-10-31 01:17:56 +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
<!-- USING CROP RATIO (182/268), centerCrop for fill -->
<androidx.cardview.widget.CardView
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="35dp"
android:elevation="0dp"
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_width="match_parent"
android:layout_height="match_parent"
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2021-09-03 23:24:47 +00:00
tools:ignore="RtlHardcoded"
2022-01-29 18:57:19 +00:00
android:contentDescription="@string/search_poster_img_des" />
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="45dp">
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="normal"
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"
android:visibility="gone"
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>