2022-04-25 17:34:14 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!-- android:layout_width="114dp"
|
|
|
|
android:layout_height="180dp"-->
|
2022-04-26 12:14:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
2022-04-25 17:34:14 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2022-04-26 12:14:36 +00:00
|
|
|
android:backgroundTint="@color/transparent"
|
|
|
|
android:foreground="@drawable/outline_drawable"
|
2022-04-26 12:18:26 +00:00
|
|
|
app:cardElevation="0dp"
|
2022-04-26 12:14:36 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:cardCornerRadius="@dimen/rounded_image_radius"
|
|
|
|
android:layout_margin="2dp"
|
2022-04-27 19:48:27 +00:00
|
|
|
android:id="@+id/background_card"
|
2022-04-26 12:14:36 +00:00
|
|
|
android:layout_width="wrap_content">
|
2022-04-25 17:34:14 +00:00
|
|
|
|
2022-04-26 12:14:36 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content">
|
2022-04-25 17:34:14 +00:00
|
|
|
|
2022-04-26 12:14:36 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
|
|
|
android:layout_width="114dp"
|
|
|
|
android:layout_height="180dp"
|
|
|
|
android:elevation="10dp"
|
|
|
|
app:cardCornerRadius="@dimen/rounded_image_radius"
|
|
|
|
app:cardBackgroundColor="?attr/primaryGrayBackground">
|
2022-04-25 17:34:14 +00:00
|
|
|
|
2022-04-26 12:14:36 +00:00
|
|
|
<ImageView
|
|
|
|
android:duplicateParentState="true"
|
|
|
|
android:id="@+id/imageView"
|
|
|
|
tools:src="@drawable/example_poster"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/search_poster_img_des" />
|
2022-04-25 17:34:14 +00:00
|
|
|
|
2022-04-26 12:14:36 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/search_item_download_play"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/play_button"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="60dp" />
|
|
|
|
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
|
|
android:layout_marginBottom="-1.5dp"
|
|
|
|
android:id="@+id/watchProgress"
|
|
|
|
android:progressTint="?attr/colorPrimary"
|
|
|
|
android:progressBackgroundTint="?attr/colorPrimary"
|
|
|
|
style="@android:style/Widget.Material.ProgressBar.Horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
tools:progress="50"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:layout_height="5dp" />
|
|
|
|
|
|
|
|
<!--<View
|
|
|
|
android:id="@+id/search_result_lang"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="4dp"
|
|
|
|
android:alpha="0.9">
|
|
|
|
|
|
|
|
</View>-->
|
|
|
|
<!--<ImageView
|
|
|
|
android:src="@drawable/ic_baseline_bookmark_24"
|
|
|
|
android:id="@+id/search_result_lang"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:layout_marginTop="-5dp"
|
|
|
|
android:layout_marginRight="-6.5dp"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp">
|
|
|
|
</ImageView>-->
|
2022-04-25 17:34:14 +00:00
|
|
|
<TextView
|
2022-04-26 12:14:36 +00:00
|
|
|
tools:text="@string/quality_hd"
|
|
|
|
android:id="@+id/text_quality"
|
2022-04-25 17:34:14 +00:00
|
|
|
style="@style/SearchBox"
|
2022-04-26 12:14:36 +00:00
|
|
|
android:background="@drawable/type_bg_color" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
2022-04-25 17:34:14 +00:00
|
|
|
android:layout_gravity="end"
|
2022-04-26 12:14:36 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
<ImageView android:id="@+id/text_is_dub" android:tint="?attr/colorPrimary"
|
|
|
|
android:src="@drawable/ic_baseline_subtitles_24" android:layout_width="wrap_content"
|
|
|
|
android:layout_height="20dp">
|
|
|
|
|
|
|
|
</ImageView>-->
|
|
|
|
<TextView
|
|
|
|
android:text="@string/app_dubbed_text"
|
|
|
|
android:id="@+id/text_is_dub"
|
|
|
|
style="@style/SearchBox"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:background="@drawable/dub_bg_color" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_is_sub"
|
|
|
|
android:text="@string/app_subbed_text"
|
|
|
|
style="@style/SearchBox"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:background="@drawable/sub_bg_color" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
tools:text="The Perfect Run\nThe Perfect Run"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="40sp"
|
|
|
|
android:textSize="13sp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:textColor="@color/textColor"
|
|
|
|
android:id="@+id/imageText"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:paddingStart="5dp"
|
|
|
|
android:paddingEnd="5dp"
|
|
|
|
android:ellipsize="end" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|