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

80 lines
3.2 KiB
XML
Raw Normal View History

2022-04-25 17:34:14 +00:00
<?xml version="1.0" encoding="utf-8"?>
2022-04-27 19:48:27 +00:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2022-04-25 17:34:14 +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="wrap_content"
android:orientation="vertical"
android:foreground="@drawable/outline_drawable"
android:focusable="true"
android:clickable="true"
android:id="@+id/search_result_root">
2022-06-09 13:50:55 +00:00
<androidx.cardview.widget.CardView
android:layout_margin="2dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="2dp"
android:elevation="10dp"
app:cardCornerRadius="@dimen/rounded_image_radius"
android:id="@+id/background_card"
app:cardBackgroundColor="?attr/primaryGrayBackground">
<ImageView
android:id="@+id/imageView"
tools:src="@drawable/example_poster"
android:duplicateParentState="true"
android:scaleType="centerCrop"
2022-04-25 17:34:14 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2022-06-09 13:50:55 +00:00
android:foreground="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/search_poster_img_des" />
2022-04-25 17:34:14 +00:00
2022-06-09 13:50:55 +00:00
<TextView
tools:text="@string/quality_hd"
android:id="@+id/text_quality"
android:textColor="@color/textColor"
style="@style/SearchBox"
android:background="@drawable/type_bg_color" />
2022-04-25 17:34:14 +00:00
2022-06-09 13:50:55 +00:00
<LinearLayout
android:orientation="vertical"
android:layout_gravity="end"
android:layout_width="match_parent"
android:layout_height="match_parent">
2022-04-25 17:34:14 +00:00
<TextView
2022-06-09 13:50:55 +00:00
android:text="@string/app_dubbed_text"
android:id="@+id/text_is_dub"
android:layout_gravity="end"
2022-04-25 17:34:14 +00:00
style="@style/SearchBox"
2022-06-09 13:50:55 +00:00
android:background="@drawable/dub_bg_color" />
2022-04-25 17:34:14 +00:00
2022-06-09 13:50:55 +00:00
<TextView
android:id="@+id/text_is_sub"
android:text="@string/app_subbed_text"
2022-04-25 17:34:14 +00:00
android:layout_gravity="end"
2022-06-09 13:50:55 +00:00
style="@style/SearchBox"
android:background="@drawable/sub_bg_color" />
</LinearLayout>
</androidx.cardview.widget.CardView>
2022-04-25 17:34:14 +00:00
2022-06-09 13:50:55 +00:00
<TextView
tools:text="The Perfect Run\nThe Perfect Run"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="13sp"
android:gravity="center"
android:layout_gravity="bottom"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:textColor="?attr/textColor"
android:id="@+id/imageText"
android:minLines="2"
android:maxLines="2"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:ellipsize="end" />
2022-04-27 19:48:27 +00:00
</LinearLayout>