redesign library and search fragment

* library/search now use a grid view with 2 columns
* media is now represented as card
* media details: poster and episodes have now rounded corners
This commit is contained in:
2020-10-14 18:33:02 +02:00
parent 87f9235b8a
commit d2728405d1
12 changed files with 73 additions and 56 deletions

View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardCornerRadius="7dp"
app:cardElevation="4dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/image_poster"
android:layout_width="match_parent"
android:layout_height="112.5dp"
android:contentDescription="@string/media_poster_desc"
android:maxWidth="200dp"
android:scaleType="fitXY"
app:srcCompat="@color/md_disabled_text_dark_theme" />
<TextView
android:id="@+id/text_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:lines="2"
android:maxLines="2"
android:padding="3dp"
android:text="@string/text_title_ex"
android:textAlignment="center"
android:textSize="15sp" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>