2015-10-12 07:01:20 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-02-14 00:09:49 +08:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2015-12-27 04:54:10 +08:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-06-02 05:56:36 +08:00
|
|
|
android:layout_margin="2dp"
|
2020-04-20 00:08:40 +08:00
|
|
|
android:background="@drawable/library_item_selector"
|
2021-06-12 21:45:26 +08:00
|
|
|
android:foreground="@drawable/library_item_selector_overlay"
|
2020-04-13 10:29:15 +08:00
|
|
|
android:padding="4dp">
|
2015-10-12 07:01:20 +08:00
|
|
|
|
2022-02-14 00:09:49 +08:00
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
android:id="@+id/thumbnail"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:foreground="@drawable/card_gradient_shape"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintDimensionRatio="w,2:3"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.Cover"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:src="@mipmap/ic_launcher" />
|
2015-10-14 02:16:15 +08:00
|
|
|
|
2022-02-14 00:09:49 +08:00
|
|
|
<include
|
|
|
|
android:id="@+id/badges"
|
|
|
|
layout="@layout/source_grid_item_badges"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginHorizontal="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/thumbnail"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/thumbnail"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/thumbnail" />
|
2015-11-25 01:45:53 +08:00
|
|
|
|
2022-02-14 00:09:49 +08:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:shadowColor="@color/md_black_1000"
|
|
|
|
android:shadowDx="0"
|
|
|
|
android:shadowDy="0"
|
|
|
|
android:shadowRadius="4"
|
|
|
|
android:textAppearance="?attr/textAppearanceTitleSmall"
|
|
|
|
android:textColor="@color/md_white_1000"
|
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/thumbnail"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
tools:text="Sample name" />
|
2015-10-14 02:16:15 +08:00
|
|
|
|
2022-02-14 00:09:49 +08:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|