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

116 lines
4.5 KiB
XML
Raw Normal View History

2015-10-12 01:01:20 +02:00
<?xml version="1.0" encoding="utf-8"?>
2020-02-22 00:43:50 +01:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2015-12-26 21:54:10 +01:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/library_item_selector"
2020-04-13 04:29:15 +02:00
android:padding="4dp">
2015-10-12 01:01:20 +02:00
<FrameLayout
2020-02-22 00:43:50 +01:00
android:id="@+id/card"
android:layout_width="wrap_content"
android:layout_height="220dp"
android:background="@drawable/rounded_rectangle">
2015-10-13 20:16:15 +02:00
<ImageView
android:id="@+id/thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-03-12 00:08:57 +01:00
android:background="?attr/colorSurface"
android:scaleType="centerCrop"
2020-02-22 00:43:50 +01:00
tools:ignore="ContentDescription"
tools:src="@mipmap/ic_launcher" />
2016-03-12 14:22:40 +01:00
<View
android:id="@+id/gradient"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
2020-02-22 00:43:50 +01:00
android:background="@drawable/gradient_shape" />
2015-10-13 20:16:15 +02:00
2020-06-13 23:00:32 +02:00
<LinearLayout
android:id="@+id/badges"
2015-12-26 21:54:10 +01:00
android:layout_width="wrap_content"
2015-10-13 20:16:15 +02:00
android:layout_height="wrap_content"
2020-06-13 23:00:32 +02:00
android:layout_marginStart="4dp"
android:layout_marginTop="4dp"
android:background="@drawable/rounded_rectangle">
2020-02-22 00:43:50 +01:00
2017-10-21 17:08:49 +02:00
<TextView
2020-06-13 23:00:32 +02:00
android:id="@+id/local_text"
style="@style/TextAppearance.Regular.Caption"
2017-10-21 17:08:49 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/colorTertiary"
android:paddingStart="3dp"
2017-10-21 17:08:49 +02:00
android:paddingTop="1dp"
2020-02-22 00:43:50 +01:00
android:paddingEnd="3dp"
android:paddingBottom="1dp"
2020-06-13 23:00:32 +02:00
android:text="@string/local_source_badge"
android:textColor="?attr/colorOnTertiary"
2017-10-21 17:08:49 +02:00
android:visibility="gone"
2020-02-22 00:43:50 +01:00
tools:visibility="visible" />
2017-10-21 17:08:49 +02:00
<TextView
android:id="@+id/download_text"
style="@style/TextAppearance.Regular.Caption"
2017-10-21 17:08:49 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/colorTertiary"
android:paddingStart="3dp"
2017-10-21 17:08:49 +02:00
android:paddingTop="1dp"
2020-02-22 00:43:50 +01:00
android:paddingEnd="3dp"
android:paddingBottom="1dp"
android:textColor="?attr/colorOnTertiary"
2017-10-21 17:08:49 +02:00
android:visibility="gone"
2020-02-22 00:43:50 +01:00
tools:text="120"
tools:visibility="visible" />
2017-10-21 17:08:49 +02:00
<TextView
android:id="@+id/unread_text"
style="@style/TextAppearance.Regular.Caption"
2017-10-21 17:08:49 +02:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="?attr/colorSecondary"
android:paddingStart="3dp"
2017-10-21 17:08:49 +02:00
android:paddingTop="1dp"
2020-02-22 00:43:50 +01:00
android:paddingEnd="3dp"
android:paddingBottom="1dp"
android:textColor="?attr/colorOnSecondary"
2020-02-22 00:43:50 +01:00
android:visibility="gone"
2020-06-13 23:00:32 +02:00
tools:text="120"
2020-02-22 00:43:50 +01:00
tools:visibility="visible" />
2020-04-13 04:29:15 +02:00
2020-06-13 23:00:32 +02:00
</LinearLayout>
<TextView
android:id="@+id/title"
style="@style/TextAppearance.Regular.Body1"
2015-12-26 21:54:10 +01:00
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"
2016-03-12 14:22:40 +01:00
android:shadowColor="@color/textColorPrimaryLight"
android:shadowDx="0"
android:shadowDy="0"
android:shadowRadius="4"
android:textColor="@color/md_white_1000"
2020-02-22 00:43:50 +01:00
tools:text="Sample name" />
2015-10-13 20:16:15 +02:00
<com.google.android.material.progressindicator.CircularProgressIndicator
android:id="@+id/progress"
style="@style/Theme.Widget.CircularProgressIndicator.Small"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-02-22 00:43:50 +01:00
android:layout_gravity="center"
android:indeterminate="true"
2020-02-22 00:43:50 +01:00
android:visibility="gone" />
</FrameLayout>
2015-10-13 20:16:15 +02:00
</FrameLayout>