2021-05-15 23:37:42 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2023-07-15 18:00:09 +00:00
|
|
|
<LinearLayout 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/search_result_root"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-05-15 23:37:42 +00:00
|
|
|
|
2022-12-03 21:55:53 +00:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:foreground="@drawable/outline_drawable"
|
|
|
|
android:orientation="vertical">
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-05-15 23:37:42 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/background_card"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_margin="2dp"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:elevation="10dp"
|
|
|
|
app:cardBackgroundColor="?attr/primaryGrayBackground"
|
|
|
|
app:cardCornerRadius="@dimen/rounded_image_radius">
|
2021-06-15 23:25:58 +00:00
|
|
|
|
2021-05-15 23:37:42 +00:00
|
|
|
<ImageView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/imageView"
|
2021-10-09 21:59:37 +00:00
|
|
|
|
2022-12-03 21:55:53 +00:00
|
|
|
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" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-05-15 23:37:42 +00:00
|
|
|
<ImageView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/title_shadow"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false"
|
|
|
|
android:src="@drawable/title_shadow"
|
|
|
|
tools:ignore="ContentDescription" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-05-15 23:37:42 +00:00
|
|
|
<TextView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/imageText"
|
2021-10-09 21:59:37 +00:00
|
|
|
|
2022-12-03 21:55:53 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:paddingStart="5dp"
|
|
|
|
android:paddingTop="5dp"
|
|
|
|
android:paddingEnd="5dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:textColor="@color/textColor"
|
|
|
|
android:textStyle="bold" />
|
2022-05-05 16:16:41 +00:00
|
|
|
|
2022-12-03 21:55:53 +00:00
|
|
|
<TextView android:id="@+id/text_quality" style="@style/TypeButton" />
|
2021-05-18 22:13:16 +00:00
|
|
|
|
2021-05-15 23:37:42 +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-05-05 16:16:41 +00:00
|
|
|
|
2021-05-15 23:37:42 +00:00
|
|
|
<TextView
|
2022-12-03 21:55:53 +00:00
|
|
|
android:id="@+id/text_is_dub"
|
|
|
|
style="@style/DubButton"
|
|
|
|
android:layout_gravity="end" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-05-15 23:37:42 +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
|
|
|
|
2023-07-15 18:00:09 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_rating"
|
|
|
|
style="@style/RatingButton"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
|
|
|
|
tools:text="7.7" />
|
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" />
|
2021-05-15 23:37:42 +00:00
|
|
|
</LinearLayout>
|
2023-07-15 18:00:09 +00:00
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
|
|
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"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:progress="50"
|
|
|
|
tools:visibility="visible" />
|
2021-05-15 23:37:42 +00:00
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
2023-07-15 18:00:09 +00:00
|
|
|
</LinearLayout>
|