mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-16 03:39:18 +01:00
c8570759fa
Last updated sorting is called "Latest chapter" now Fixing some mangas being called manhwas Fixed library searching from tags Broswing manga from source now starts with the details and tags expanded Restored click on thumbnail in details Restored copying title and aurthor Made toolbar in details translucent Added mark all unread and mark previous as read in detail Fixed changing grid size
373 lines
16 KiB
XML
373 lines
16 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:id="@+id/manga_header_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<View
|
|
android:id="@+id/true_backdrop"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHeight_min="200dp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="@id/bottom_line"
|
|
app:layout_constraintVertical_bias="0.0"
|
|
tools:background="@color/material_red_400" />
|
|
|
|
<ImageView
|
|
android:id="@+id/backdrop"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:alpha="0.1"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintBottom_toBottomOf="@+id/true_backdrop"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="@+id/true_backdrop"
|
|
tools:src="@mipmap/ic_launcher" />
|
|
|
|
<View
|
|
android:id="@+id/backdrop_gradient"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="300dp"
|
|
android:background="@drawable/gradient_shape"
|
|
android:backgroundTint="?android:attr/colorBackground"
|
|
app:layout_constraintBottom_toBottomOf="@+id/true_backdrop" />
|
|
|
|
<View
|
|
android:id="@+id/top_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="100dp"
|
|
android:layout_marginTop="0dp"
|
|
app:layout_constraintBottom_toTopOf="@id/cover_card"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/cover_card"
|
|
android:layout_width="100dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
app:layout_constraintTop_toBottomOf="@id/top_view"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintVertical_bias="1.0">
|
|
|
|
<ImageView
|
|
android:id="@+id/manga_cover"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
android:contentDescription="@string/description_cover"
|
|
android:maxHeight="300dp"
|
|
tools:background="@color/material_grey_700"
|
|
tools:src="@mipmap/ic_launcher" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/manga_full_title"
|
|
style="@style/TextAppearance.MaterialComponents.Headline6"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="4"
|
|
android:text="@string/manga_info_full_title_label"
|
|
android:textIsSelectable="false"
|
|
android:textSize="20sp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/cover_card"
|
|
app:layout_constraintTop_toTopOf="@id/cover_card"
|
|
tools:text="Title Example" />
|
|
|
|
<TextView
|
|
android:id="@+id/manga_author"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:text="@string/manga_info_author_label"
|
|
android:textAppearance="@style/TextAppearance.Regular.Body1.SemiBold"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:textIsSelectable="false"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="@id/manga_full_title"
|
|
app:layout_constraintTop_toBottomOf="@+id/manga_full_title" />
|
|
|
|
<TextView
|
|
android:id="@+id/manga_status"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:text="@string/manga_info_latest_data_label"
|
|
android:textIsSelectable="false"
|
|
app:layout_constraintStart_toStartOf="@id/manga_full_title"
|
|
app:layout_constraintTop_toBottomOf="@+id/manga_author"
|
|
tools:text="Completed" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/manga_source"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textIsSelectable="false"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="@id/manga_full_title"
|
|
app:layout_constraintTop_toBottomOf="@id/manga_status"
|
|
tools:text="Mangadex (EN)" />
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
android:id="@+id/bottom_line"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp"
|
|
android:orientation="horizontal"
|
|
app:barrierDirection="bottom"
|
|
app:constraint_referenced_ids="manga_source,cover_card" />
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/button_layout"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="14dp"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintBottom_toTopOf="@id/manga_summary_label"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/bottom_line">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/favorite_button"
|
|
style="@style/Theme.Widget.Button.RounededOutline"
|
|
android:text="@string/add_to_library"
|
|
app:icon="@drawable/ic_add_to_library_24dp" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/track_button"
|
|
style="@style/Theme.Widget.Button.RounededOutline"
|
|
android:layout_marginStart="6dp"
|
|
android:text="@string/manga_tracking_tab"
|
|
app:icon="@drawable/ic_sync_black_24dp" />
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/webview_button"
|
|
style="@style/Theme.Widget.CustomImageButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:tooltipText="@string/action_open_in_web_view"
|
|
android:padding="5dp"
|
|
android:contentDescription="@string/action_open_in_web_view"
|
|
android:src="@drawable/ic_open_in_webview_white_24dp" />
|
|
|
|
<ImageView
|
|
android:id="@+id/share_button"
|
|
style="@style/Theme.Widget.CustomImageButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="0dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:tooltipText="@string/action_share"
|
|
android:padding="5dp"
|
|
android:contentDescription="@string/action_share"
|
|
android:src="@drawable/ic_share_white_24dp" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/manga_summary_label"
|
|
style="@style/TextAppearance.MaterialComponents.Headline6"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="6dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:text="@string/description"
|
|
android:textIsSelectable="false"
|
|
android:textSize="17sp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/button_layout"
|
|
tools:text="About this manga" />
|
|
|
|
<TextView
|
|
android:id="@+id/manga_summary"
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="4dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:layout_marginEnd="16dp"
|
|
android:maxLines="3"
|
|
android:textIsSelectable="false"
|
|
app:layout_constraintBottom_toTopOf="@id/manga_genres_tags"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
tools:maxLines="10"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/manga_summary_label"
|
|
tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." />
|
|
|
|
<View
|
|
android:id="@+id/more_bg_gradient"
|
|
android:layout_width="50dp"
|
|
android:layout_height="16sp"
|
|
android:layout_marginEnd="30dp"
|
|
android:background="@drawable/full_gradient"
|
|
android:backgroundTint="?android:attr/colorBackground"
|
|
app:layout_constraintBottom_toBottomOf="@id/manga_summary"
|
|
app:layout_constraintEnd_toEndOf="@id/more_button" />
|
|
|
|
<View
|
|
android:id="@+id/more_bg_solid"
|
|
android:layout_width="0dp"
|
|
android:layout_height="16sp"
|
|
android:layout_marginStart="45dp"
|
|
android:background="?android:attr/colorBackground"
|
|
app:layout_constraintBottom_toBottomOf="@id/manga_summary"
|
|
app:layout_constraintEnd_toEndOf="@id/more_button"
|
|
app:layout_constraintStart_toStartOf="@id/more_button" />
|
|
|
|
<View
|
|
android:id="@+id/more_guide"
|
|
android:layout_width="1dp"
|
|
android:layout_height="15sp"
|
|
app:layout_constraintEnd_toEndOf="@id/manga_summary"
|
|
app:layout_constraintTop_toBottomOf="@id/manga_summary"/>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/more_button"
|
|
style="@style/Theme.Widget.Button.TextButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/more"
|
|
android:layout_marginEnd="8dp"
|
|
android:textAlignment="textEnd"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="@id/more_guide"
|
|
app:rippleColor="@null" />
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
android:id="@+id/more_button_group"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:constraint_referenced_ids="more_button,more_bg_gradient,more_bg_solid" />
|
|
|
|
<me.gujun.android.taggroup.TagGroup
|
|
android:id="@+id/manga_genres_tags"
|
|
style="@style/TagGroup"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
tools:layout_height="100dp"
|
|
app:atg_backgroundColor="@android:color/transparent"
|
|
app:atg_borderColor="@color/md_blue_A400"
|
|
app:atg_borderStrokeWidth="1dp"
|
|
app:atg_textColor="@color/md_blue_A400"
|
|
app:layout_constrainedHeight="true"
|
|
app:layout_constraintBottom_toTopOf="@id/less_button"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/manga_summary" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/less_button"
|
|
style="@style/Theme.Widget.Button.TextButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/less"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginStart="8dp"
|
|
android:textAlignment="textEnd"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintBottom_toTopOf="@id/start_reading_button"
|
|
app:layout_constraintTop_toBottomOf="@id/manga_genres_tags"
|
|
app:rippleColor="@null" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/start_reading_button"
|
|
style="@style/Theme.Widget.Button.Primary"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:text="@string/start_reading"
|
|
app:layout_constraintBottom_toTopOf="@id/chapters_title"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/less_button"
|
|
tools:text="Continue Reading Chapter 17.1" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/chapters_title"
|
|
style="@style/TextAppearance.MaterialComponents.Headline6"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="18dp"
|
|
android:layout_marginBottom="12dp"
|
|
android:maxLines="1"
|
|
android:text="@string/chapters"
|
|
android:textSize="17sp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/filters_text"
|
|
app:layout_constraintStart_toStartOf="@id/manga_summary_label"
|
|
app:layout_constraintTop_toBottomOf="@id/start_reading_button" />
|
|
|
|
<ImageView
|
|
android:id="@+id/filter_button"
|
|
style="@style/Theme.Widget.CustomImageButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="16dp"
|
|
android:padding="5dp"
|
|
android:tooltipText="@string/action_filter"
|
|
android:src="@drawable/ic_filter_list_white_24dp"
|
|
app:layout_constraintBottom_toBottomOf="@id/chapters_title"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/chapters_title" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/filters_text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="6dp"
|
|
android:maxLines="2"
|
|
android:padding="5dp"
|
|
android:textColor="?android:textColorHint"
|
|
android:textAlignment="textEnd"
|
|
app:layout_constraintBottom_toBottomOf="@id/filter_button"
|
|
app:layout_constraintEnd_toStartOf="@id/filter_button"
|
|
app:layout_constraintStart_toEndOf="@+id/chapters_title"
|
|
app:layout_constraintTop_toTopOf="@id/filter_button"
|
|
tools:text="Read, Unread, Bookmarked, Downloaded, All" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |