* More themes cleanup * Tweak some things * Fix 'Clear History' icon * Split out ripple colored to its own drawable * Tidy up things * Unify background dim amount * Use primaryColor for Account login button * More colored ripples * use colorOnPrimary for selected comfortable library item title Co-authored-by: Soitora <simon.mattila@protonmail.com> (cherry picked from commit 932c92412c29fe4a8d1410d29a6e77557ad48707) # Conflicts: # app/src/main/res/layout-sw720dp/manga_info_header.xml # app/src/main/res/layout/manga_info_header.xml # app/src/main/res/layout/reader_activity.xml # app/src/main/res/menu/library_selection.xml # app/src/main/res/menu/reader.xml # app/src/main/res/values/colors.xml # app/src/main/res/values/dimens.xml
133 lines
5.2 KiB
XML
133 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/library_item_selector">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/card"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="220dp"
|
|
android:background="@drawable/rounded_rectangle"
|
|
app:layout_constraintDimensionRatio="0.75"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintWidth_min="100dp"
|
|
app:layout_constraintHeight_min="100dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/thumbnail"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
tools:src="@mipmap/ic_launcher" />
|
|
|
|
<View
|
|
android:id="@+id/gradient"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="@drawable/gradient_shape" />
|
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
|
android:id="@+id/loading_group"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:indeterminate="true"
|
|
app:indicatorSize="56dp"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="4dp"
|
|
android:layout_marginTop="4dp"
|
|
android:background="@drawable/rounded_rectangle"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/manga_chapters"
|
|
style="@style/TextAppearance.Regular.Caption"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorSecondary"
|
|
android:paddingStart="3dp"
|
|
android:paddingTop="1dp"
|
|
android:paddingEnd="3dp"
|
|
android:paddingBottom="1dp"
|
|
android:text="101"
|
|
android:textColor="?attr/colorOnSecondary"
|
|
android:visibility="gone"
|
|
tools:visibility="visible" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
style="@style/TextAppearance.Regular.Body1"
|
|
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"
|
|
android:shadowColor="@color/md_black_1000"
|
|
android:shadowDx="0"
|
|
android:shadowDy="0"
|
|
android:shadowRadius="4"
|
|
android:textColor="@color/md_white_1000"
|
|
tools:text="Sample name" />
|
|
|
|
<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:visibility="gone"
|
|
android:indeterminate="true" />
|
|
|
|
</FrameLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/card_scroll_content"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:paddingBottom="20dp"
|
|
android:gravity="start"
|
|
android:orientation="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="@id/card"
|
|
app:layout_constraintStart_toStartOf="@id/card"
|
|
app:layout_constraintTop_toBottomOf="@id/card">
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/manga_source_label"
|
|
style="@style/TextAppearance.Medium.Body2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="false"
|
|
android:textIsSelectable="false"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
tools:layout_editor_absoluteY="57dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/manga_last_chapter_label"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="false"
|
|
android:textIsSelectable="false" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |