This commit is contained in:
LagradOst 2022-04-26 14:14:36 +02:00
parent 1a5fc93eba
commit c0132e2090
3 changed files with 117 additions and 108 deletions

View file

@ -3,8 +3,8 @@
<stroke android:width="2dp" <stroke android:width="2dp"
android:color="?attr/white"/> android:color="?attr/white"/>
<corners <corners
android:bottomLeftRadius="2dp" android:bottomLeftRadius="@dimen/rounded_image_radius"
android:bottomRightRadius="2dp" android:bottomRightRadius="@dimen/rounded_image_radius"
android:topLeftRadius="2dp" android:topLeftRadius="@dimen/rounded_image_radius"
android:topRightRadius="2dp" /> android:topRightRadius="@dimen/rounded_image_radius" />
</shape> </shape>

View file

@ -191,7 +191,7 @@
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/home_profile_picture_holder" android:id="@+id/home_profile_picture_holder"
android:layout_marginEnd="20dp" android:layout_marginEnd="10dp"
app:cardCornerRadius="100dp" app:cardCornerRadius="100dp"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:layout_width="40dp" android:layout_width="40dp"
@ -324,6 +324,7 @@
android:layout_height="40sp" /> android:layout_height="40sp" />
<LinearLayout <LinearLayout
android:visibility="visible"
android:padding="5dp" android:padding="5dp"
android:layout_gravity="center" android:layout_gravity="center"
android:gravity="center" android:gravity="center"

View file

@ -2,117 +2,125 @@
<!-- android:layout_width="114dp" <!-- android:layout_width="114dp"
android:layout_height="180dp"--> android:layout_height="180dp"-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical" android:backgroundTint="@color/transparent"
android:layout_width="wrap_content" android:foreground="@drawable/outline_drawable"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
app:cardCornerRadius="@dimen/rounded_image_radius"
android:layout_margin="2dp"
android:layout_width="wrap_content">
<androidx.cardview.widget.CardView <LinearLayout
android:foreground="@drawable/outline_drawable" android:orientation="vertical"
android:layout_margin="2dp" android:layout_width="wrap_content"
android:layout_width="114dp" android:layout_height="wrap_content">
android:layout_height="180dp"
android:layout_marginBottom="2dp"
android:elevation="10dp"
app:cardCornerRadius="@dimen/rounded_image_radius"
android:id="@+id/backgroundCard"
app:cardBackgroundColor="?attr/primaryGrayBackground">
<ImageView <androidx.cardview.widget.CardView
android:duplicateParentState="true" android:layout_width="114dp"
android:id="@+id/imageView" android:layout_height="180dp"
tools:src="@drawable/example_poster" android:elevation="10dp"
android:scaleType="centerCrop" app:cardCornerRadius="@dimen/rounded_image_radius"
android:layout_width="match_parent" android:id="@+id/backgroundCard"
android:layout_height="match_parent" app:cardBackgroundColor="?attr/primaryGrayBackground">
android:foreground="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/search_poster_img_des" /> <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" />
<ImageView <ImageView
android:id="@+id/search_item_download_play" android:id="@+id/search_item_download_play"
android:layout_gravity="center" android:layout_gravity="center"
android:src="@drawable/play_button" android:src="@drawable/play_button"
android:layout_width="60dp" android:layout_width="60dp"
android:layout_height="60dp" /> android:layout_height="60dp" />
<androidx.core.widget.ContentLoadingProgressBar <androidx.core.widget.ContentLoadingProgressBar
android:layout_marginBottom="-1.5dp" android:layout_marginBottom="-1.5dp"
android:id="@+id/watchProgress" android:id="@+id/watchProgress"
android:progressTint="?attr/colorPrimary" android:progressTint="?attr/colorPrimary"
android:progressBackgroundTint="?attr/colorPrimary" android:progressBackgroundTint="?attr/colorPrimary"
style="@android:style/Widget.Material.ProgressBar.Horizontal" style="@android:style/Widget.Material.ProgressBar.Horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
tools:progress="50" tools:progress="50"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_height="5dp" /> android:layout_height="5dp" />
<!--<View <!--<View
android:id="@+id/search_result_lang" android:id="@+id/search_result_lang"
android:layout_gravity="bottom" android:layout_gravity="bottom"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="4dp" android:layout_height="4dp"
android:alpha="0.9"> 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>-->
<TextView
tools:text="@string/quality_hd"
android:id="@+id/text_quality"
style="@style/SearchBox"
android:background="@drawable/type_bg_color" />
<LinearLayout
android:orientation="vertical"
android:layout_gravity="end"
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>
</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>-->
<TextView <TextView
tools:text="@string/quality_hd" tools:text="The Perfect Run\nThe Perfect Run"
android:id="@+id/text_quality"
style="@style/SearchBox"
android:background="@drawable/type_bg_color" />
<LinearLayout
android:orientation="vertical"
android:layout_gravity="end"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="40sp"
android:textSize="13sp"
<!-- android:gravity="center"
<ImageView android:id="@+id/text_is_dub" android:tint="?attr/colorPrimary" android:layout_gravity="bottom"
android:src="@drawable/ic_baseline_subtitles_24" android:layout_width="wrap_content" android:paddingBottom="5dp"
android:layout_height="20dp"> android:paddingTop="5dp"
android:textColor="@color/textColor"
</ImageView>--> android:id="@+id/imageText"
<TextView android:maxLines="2"
android:text="@string/app_dubbed_text" android:paddingStart="5dp"
android:id="@+id/text_is_dub" android:paddingEnd="5dp"
style="@style/SearchBox" android:ellipsize="end" />
android:layout_gravity="end" </LinearLayout>
android:background="@drawable/dub_bg_color" /> </androidx.cardview.widget.CardView>
<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>