You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.9 KiB
XML
85 lines
2.9 KiB
XML
<?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"
|
|
style="?materialCardViewOutlinedStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:layout_width="@dimen/chapter_grid_width">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView
|
|
android:id="@+id/textView_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:gravity="center"
|
|
android:singleLine="true"
|
|
android:textAlignment="center"
|
|
android:textAppearance="?attr/textAppearanceTitleMedium"
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="150"
|
|
tools:textColor="?android:textColorPrimary" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView_bookmarked"
|
|
android:layout_width="14dp"
|
|
android:layout_height="14dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:contentDescription="@string/bookmarks"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="@id/textView_title"
|
|
app:layout_constraintEnd_toEndOf="@id/textView_title"
|
|
app:srcCompat="@drawable/ic_bookmark"
|
|
tools:visibility="visible" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView_downloaded"
|
|
android:layout_width="14dp"
|
|
android:layout_height="14dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_marginBottom="6dp"
|
|
android:contentDescription="@string/downloaded"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="@id/textView_title"
|
|
app:layout_constraintEnd_toStartOf="@id/imageView_bookmarked"
|
|
app:srcCompat="@drawable/ic_save_ok"
|
|
tools:visibility="visible" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView_new"
|
|
android:layout_width="8dp"
|
|
android:layout_height="8dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:contentDescription="@string/new_chapters"
|
|
android:visibility="gone"
|
|
app:layout_constraintEnd_toEndOf="@id/textView_title"
|
|
app:layout_constraintTop_toTopOf="@id/textView_title"
|
|
app:srcCompat="@drawable/ic_new"
|
|
tools:visibility="visible" />
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView_current"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginTop="6dp"
|
|
android:contentDescription="@string/new_chapters"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toStartOf="@id/textView_title"
|
|
app:layout_constraintTop_toTopOf="@id/textView_title"
|
|
app:srcCompat="@drawable/ic_current_chapter"
|
|
tools:visibility="visible" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|