tachiyomi/app/src/main/res/layout/source_compact_grid_item.xml

66 lines
2.4 KiB
XML
Raw Normal View History

2015-10-12 07:01:20 +08:00
<?xml version="1.0" encoding="utf-8"?>
2020-02-22 07:43:50 +08:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
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"
android:layout_margin="2dp"
android:background="@drawable/library_item_selector"
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
<FrameLayout
2020-02-22 07:43:50 +08:00
android:id="@+id/card"
android:layout_width="wrap_content"
android:layout_height="220dp"
android:background="@drawable/rounded_rectangle">
2015-10-14 02:16:15 +08:00
<ImageView
android:id="@+id/thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-03-12 07:08:57 +08:00
android:background="?attr/colorSurface"
android:scaleType="centerCrop"
2020-02-22 07:43:50 +08:00
tools:ignore="ContentDescription"
tools:src="@mipmap/ic_launcher" />
2016-03-12 21:22:40 +08:00
<View
android:id="@+id/gradient"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
2020-02-22 07:43:50 +08:00
android:background="@drawable/gradient_shape" />
2015-10-14 02:16:15 +08:00
2021-10-10 05:26:53 +08:00
<include
2020-06-14 05:00:32 +08:00
android:id="@+id/badges"
2021-10-10 05:26:53 +08:00
layout="@layout/source_grid_item_badges" />
<TextView
android:id="@+id/title"
2015-12-27 04:54:10 +08:00
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"
2021-11-14 23:23:44 +08:00
android:textAppearance="?attr/textAppearanceTitleSmall"
android:textSize="12sp"
android:textColor="@color/md_white_1000"
2020-02-22 07:43:50 +08:00
tools:text="Sample name" />
2015-10-14 02:16:15 +08:00
<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"
2020-02-22 07:43:50 +08:00
android:layout_gravity="center"
android:indeterminate="true"
2020-02-22 07:43:50 +08:00
android:visibility="gone" />
</FrameLayout>
2015-10-14 02:16:15 +08:00
</FrameLayout>