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-12-03 21:55:53 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/background_card"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="2dp"
|
|
|
|
android:backgroundTint="@color/transparent"
|
|
|
|
android:foreground="@drawable/outline_drawable"
|
|
|
|
app:cardCornerRadius="@dimen/rounded_image_radius"
|
|
|
|
app:cardElevation="0dp">
|
2022-04-25 17:34:14 +00:00
|
|
|
|
2022-04-26 12:14:36 +00:00
|
|
|
<LinearLayout
|
2022-12-03 21:55:53 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
2022-04-25 17:34:14 +00:00
|
|
|
|
2022-04-26 12:14:36 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/image_holder"
|
|
|
|
android:layout_width="114dp"
|
|
|
|
android:layout_height="180dp"
|
|
|
|
android:elevation="10dp"
|
|
|
|
app:cardBackgroundColor="?attr/primaryGrayBackground"
|
|
|
|
app:cardCornerRadius="@dimen/rounded_image_radius">
|
2022-04-25 17:34:14 +00:00
|
|
|
|
2022-04-26 12:14:36 +00:00
|
|
|
<ImageView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/imageView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:contentDescription="@string/search_poster_img_des"
|
|
|
|
android:duplicateParentState="true"
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
tools:src="@drawable/example_poster" />
|
2022-04-25 17:34:14 +00:00
|
|
|
|
2022-04-26 12:14:36 +00:00
|
|
|
|
|
|
|
<ImageView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/search_item_download_play"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="60dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/play_button" />
|
2022-04-26 12:14:36 +00:00
|
|
|
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/watchProgress"
|
|
|
|
style="@android:style/Widget.Material.ProgressBar.Horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="5dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:layout_marginBottom="-1.5dp"
|
|
|
|
android:progressBackgroundTint="?attr/colorPrimary"
|
|
|
|
android:progressTint="?attr/colorPrimary"
|
|
|
|
tools:progress="50" />
|
2022-04-26 12:14:36 +00:00
|
|
|
|
|
|
|
<!--<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-12-03 21:55:53 +00:00
|
|
|
<TextView android:id="@+id/text_quality" style="@style/TypeButton" />
|
2022-04-26 12:14:36 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2022-12-03 21:55:53 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:orientation="vertical">
|
2022-04-26 12:14:36 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
<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
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/text_is_dub"
|
|
|
|
style="@style/DubButton"
|
|
|
|
android:layout_gravity="end" />
|
2022-04-26 12:14:36 +00:00
|
|
|
|
|
|
|
<TextView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/text_is_sub"
|
|
|
|
style="@style/SubButton"
|
|
|
|
android:layout_gravity="end" />
|
2022-07-25 01:18:27 +00:00
|
|
|
|
|
|
|
<TextView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/text_flag"
|
|
|
|
style="@style/SearchBox"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:background="@color/transparent"
|
|
|
|
android:textSize="20sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="🇸🇪"
|
|
|
|
tools:visibility="visible" />
|
2022-04-26 12:14:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
<TextView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/imageText"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:minLines="2"
|
|
|
|
android:paddingStart="5dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingEnd="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:textSize="13sp"
|
|
|
|
tools:text="The Perfect Run\nThe Perfect Run\nhello" />
|
2022-04-26 12:14:36 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|