mirror of
https://github.com/mihonapp/mihon.git
synced 2024-10-31 21:20:59 -04:00
125 lines
5.1 KiB
XML
125 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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="wrap_content"
|
|
android:background="@drawable/library_item_selector"
|
|
android:padding="4dp">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="220dp"
|
|
app:cardCornerRadius="@dimen/card_radius">
|
|
|
|
<ImageView
|
|
android:id="@+id/thumbnail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/colorSurface"
|
|
tools:background="?attr/colorSurface"
|
|
tools:ignore="ContentDescription"
|
|
tools:src="@mipmap/ic_launcher" />
|
|
|
|
<View
|
|
android:id="@+id/gradient"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="@drawable/gradient_shape" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
tools:layout_editor_absoluteX="7dp"
|
|
tools:layout_editor_absoluteY="7dp">
|
|
|
|
<TextView
|
|
android:id="@+id/unread_text"
|
|
style="@style/TextAppearance.Regular.Caption"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginTop="4dp"
|
|
android:background="@color/colorAccentDark"
|
|
android:paddingStart="3dp"
|
|
android:paddingTop="1dp"
|
|
android:paddingEnd="3dp"
|
|
android:paddingBottom="1dp"
|
|
android:textColor="@color/md_white_1000"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toEndOf="@+id/download_text"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="120"
|
|
tools:visibility="visible" />
|
|
|
|
<TextView
|
|
android:id="@+id/download_text"
|
|
style="@style/TextAppearance.Regular.Caption"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginTop="4dp"
|
|
android:background="@color/md_red_500"
|
|
android:paddingStart="3dp"
|
|
android:paddingTop="1dp"
|
|
android:paddingEnd="3dp"
|
|
android:paddingBottom="1dp"
|
|
android:textColor="@color/md_white_1000"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toEndOf="@+id/local_text"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="120"
|
|
tools:visibility="visible" />
|
|
|
|
<TextView
|
|
android:id="@+id/local_text"
|
|
style="@style/TextAppearance.Regular.Caption"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginTop="4dp"
|
|
android:background="@color/md_teal_500"
|
|
android:paddingStart="3dp"
|
|
android:paddingTop="1dp"
|
|
android:paddingEnd="3dp"
|
|
android:paddingBottom="1dp"
|
|
android:text="@string/local_source_badge"
|
|
android:textColor="@color/md_white_1000"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:visibility="visible" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
style="@style/TextAppearance.Regular.Body1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:ellipsize="end"
|
|
android:fontFamily="@font/ptsans_narrow_bold"
|
|
android:lineSpacingExtra="-4dp"
|
|
android:maxLines="2"
|
|
android:padding="8dp"
|
|
android:shadowColor="@color/textColorPrimaryLight"
|
|
android:shadowDx="0"
|
|
android:shadowDy="0"
|
|
android:shadowRadius="4"
|
|
android:textColor="@color/md_white_1000"
|
|
tools:text="Sample name" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progress"
|
|
style="?android:attr/progressBarStyleSmall"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:visibility="gone" />
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</FrameLayout>
|