2021-05-15 23:37:42 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<FrameLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
|
|
|
android:focusable="true"
|
|
|
|
android:clickable="true"
|
|
|
|
android:id="@+id/search_result_root"
|
|
|
|
|
|
|
|
>
|
|
|
|
<androidx.cardview.widget.CardView
|
2021-05-18 22:13:16 +00:00
|
|
|
|
2021-05-15 23:37:42 +00:00
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:layout_margin="2dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:elevation="10dp"
|
|
|
|
app:cardCornerRadius="@dimen/roundedImageRadius"
|
|
|
|
android:id="@+id/backgroundCard"
|
|
|
|
app:cardBackgroundColor="@color/darkBackground"
|
|
|
|
>
|
|
|
|
<!-- USING CROP RATIO (182/268), centerCrop for fill -->
|
|
|
|
<ImageView
|
|
|
|
android:duplicateParentState="true"
|
|
|
|
android:id="@+id/imageView"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/search_poster_descript"/>
|
|
|
|
<ImageView
|
|
|
|
android:focusable="false"
|
|
|
|
android:clickable="false"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="50dp"
|
|
|
|
android:src="@drawable/title_shadow"
|
|
|
|
android:layout_gravity="bottom" android:contentDescription="@string/shadow_descript">
|
|
|
|
</ImageView>
|
|
|
|
<TextView
|
|
|
|
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:id="@+id/imageText"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:paddingStart="5dp"
|
|
|
|
android:paddingEnd="5dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
/>
|
|
|
|
<TextView
|
|
|
|
android:text="Movie"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:id="@+id/text_type"
|
|
|
|
android:textColor="@color/textColor"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_gravity="start"
|
2021-05-18 22:13:16 +00:00
|
|
|
android:paddingBottom="8dp"
|
2021-05-15 23:37:42 +00:00
|
|
|
android:minWidth="50dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:background="@drawable/type_bg_color"
|
|
|
|
android:layout_width="wrap_content" android:layout_height="wrap_content">
|
|
|
|
</TextView>
|
2021-05-18 22:13:16 +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>
|
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">
|
2021-05-18 22:13:16 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
<ImageView android:id="@+id/text_is_dub" android:tint="@color/colorPrimary" android:src="@drawable/ic_baseline_subtitles_24" android:layout_width="wrap_content" android:layout_height="20dp">
|
|
|
|
|
|
|
|
</ImageView>
|
2021-05-15 23:37:42 +00:00
|
|
|
<TextView
|
|
|
|
android:text="Dub"
|
2021-05-18 22:13:16 +00:00
|
|
|
android:id="@+id/_text_is_dub"
|
2021-05-15 23:37:42 +00:00
|
|
|
android:textColor="@color/textColor"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
android:minWidth="50dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:background="@drawable/dub_bg_color"
|
|
|
|
android:layout_width="wrap_content" android:layout_height="wrap_content">
|
|
|
|
</TextView>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_is_sub"
|
|
|
|
android:text="Sub"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:textColor="@color/textColor"
|
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingLeft="10dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
android:minWidth="50dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:background="@drawable/sub_bg_color"
|
2021-05-18 22:13:16 +00:00
|
|
|
android:layout_width="wrap_content" android:layout_height="match_parent"
|
2021-05-15 23:37:42 +00:00
|
|
|
android:baselineAligned="false">
|
2021-05-18 22:13:16 +00:00
|
|
|
</TextView>-->
|
2021-05-15 23:37:42 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
|
|
|
|
</FrameLayout>
|