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

86 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
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
2021-08-29 18:42:44 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2022-01-29 18:57:19 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-05-15 23:37:42 +00:00
android:orientation="vertical"
2021-10-09 21:59:37 +00:00
android:foreground="@drawable/outline_drawable"
2021-05-15 23:37:42 +00:00
android:focusable="true"
android:clickable="true"
2022-01-29 18:57:19 +00:00
android:id="@+id/search_result_root">
2021-05-15 23:37:42 +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"
2021-11-27 18:49:51 +00:00
app:cardCornerRadius="@dimen/rounded_image_radius"
2022-04-27 19:48:27 +00:00
android:id="@+id/background_card"
2022-01-29 18:57:19 +00:00
app:cardBackgroundColor="?attr/primaryGrayBackground">
2021-06-15 23:25:58 +00:00
2021-05-15 23:37:42 +00:00
<ImageView
android:id="@+id/imageView"
2021-10-09 21:59:37 +00:00
android:duplicateParentState="true"
2021-05-15 23:37:42 +00:00
android:scaleType="centerCrop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="?android:attr/selectableItemBackgroundBorderless"
2022-01-29 18:57:19 +00:00
android:contentDescription="@string/search_poster_img_des" />
2021-05-15 23:37:42 +00:00
<ImageView
android:focusable="false"
android:clickable="false"
android:layout_width="match_parent"
android:layout_height="50dp"
android:src="@drawable/title_shadow"
2022-01-29 18:57:19 +00:00
android:layout_gravity="bottom"
tools:ignore="ContentDescription" />
2021-05-15 23:37:42 +00:00
<TextView
2021-10-09 21:59:37 +00:00
android:id="@+id/imageText"
2021-05-15 23:37:42 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_gravity="bottom"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:textColor="@color/textColor"
android:textStyle="bold"
android:maxLines="2"
android:paddingStart="5dp"
android:paddingEnd="5dp"
2022-01-29 18:57:19 +00:00
android:ellipsize="end" />
2022-03-30 13:41:45 +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" />
2021-05-18 22:13:16 +00:00
2021-05-15 23:37:42 +00:00
<LinearLayout
android:orientation="vertical"
android:layout_gravity="end"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
2021-07-24 15:13:21 +00:00
android:text="@string/app_dubbed_text"
2021-05-19 14:43:08 +00:00
android:id="@+id/text_is_dub"
2021-05-15 23:37:42 +00:00
android:layout_gravity="end"
2022-03-30 13:41:45 +00:00
style="@style/SearchBox"
android:background="@drawable/dub_bg_color" />
2022-01-29 18:57:19 +00:00
2021-05-15 23:37:42 +00:00
<TextView
android:id="@+id/text_is_sub"
2021-07-24 15:13:21 +00:00
android:text="@string/app_subbed_text"
2021-05-15 23:37:42 +00:00
android:layout_gravity="end"
2022-03-30 13:41:45 +00:00
style="@style/SearchBox"
android:background="@drawable/sub_bg_color" />
2021-05-15 23:37:42 +00:00
</LinearLayout>
</androidx.cardview.widget.CardView>
</FrameLayout>