1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?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:layout_margin="2dp"
- android:background="@drawable/library_item_selector"
- android:foreground="@drawable/library_item_selector_overlay"
- android:padding="4dp">
- <androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <FrameLayout
- android:id="@+id/card"
- android:layout_width="match_parent"
- android:layout_height="220dp"
- android:background="@drawable/rounded_rectangle"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
- <ImageView
- android:id="@+id/thumbnail"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="?attr/colorSurface"
- android:scaleType="centerCrop"
- tools:ignore="ContentDescription"
- tools:src="@mipmap/ic_launcher" />
- <include
- android:id="@+id/badges"
- layout="@layout/source_grid_item_badges" />
- <com.google.android.material.progressindicator.CircularProgressIndicator
- android:id="@+id/progress"
- style="@style/Widget.Tachiyomi.CircularProgressIndicator.Small"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:indeterminate="true"
- android:visibility="gone" />
- </FrameLayout>
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:ellipsize="end"
- android:maxLines="2"
- android:padding="4dp"
- android:textAppearance="?attr/textAppearanceTitleSmall"
- android:textSize="12sp"
- android:textColor="@color/source_comfortable_item_title"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@+id/card"
- tools:text="Sample name" />
- </androidx.constraintlayout.widget.ConstraintLayout>
- </FrameLayout>
|