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

136 lines
5.7 KiB
XML
Raw Normal View History

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"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
2021-05-15 23:37:42 +00:00
android:layout_height="wrap_content"
2021-08-29 18:42:44 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
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"
android:id="@+id/search_result_root"
>
<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"
app:cardCornerRadius="@dimen/roundedImageRadius"
android:id="@+id/backgroundCard"
2021-10-31 01:17:56 +00:00
app:cardBackgroundColor="?attr/primaryGrayBackground"
2021-05-15 23:37:42 +00:00
>
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"
2021-09-03 23:24:47 +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"
android:layout_gravity="bottom" tools:ignore="ContentDescription">
2021-05-15 23:37:42 +00:00
</ImageView>
<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"
android:ellipsize="end"
/>
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>-->
2021-05-19 14:43:08 +00:00
<!--<ImageView
2021-05-18 22:13:16 +00:00
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">
2021-05-19 14:43:08 +00:00
</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
2021-10-10 02:26:18 +00:00
<!-- <TextView
android:text="Movie"
2021-10-31 01:17:56 +00:00
android:textColor="?attr/textColor"
2021-10-10 02:26:18 +00:00
android:paddingRight="10dp"
android:paddingLeft="10dp"
android:paddingTop="4dp"
android:layout_marginBottom="5dp"
android:layout_gravity="end"
android:paddingBottom="8dp"
android:minWidth="50dp"
android:gravity="end"
android:background="@drawable/type_bg_color"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>-->
2021-10-09 21:59:37 +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">
2021-05-18 22:13:16 +00:00
2021-10-09 21:59:37 +00:00
</ImageView>-->
2021-05-15 23:37:42 +00:00
<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: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"
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"
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-19 14:43:08 +00:00
android:layout_width="wrap_content" android:layout_height="wrap_content"
>
</TextView>
2021-05-15 23:37:42 +00:00
</LinearLayout>
</androidx.cardview.widget.CardView>
</FrameLayout>