2020-03-02 02:44:24 +01:00
<?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"
2020-03-02 11:18:48 +01:00
android:layout_height="0dp"
2020-04-04 22:11:00 +02:00
app:layout_constraintBottom_toBottomOf="@id/bottom_line"
2020-03-02 02:44:24 +01:00
app:layout_constraintEnd_toEndOf="parent"
2020-03-03 09:26:17 +01:00
app:layout_constraintHeight_min="200dp"
2020-03-02 02:44:24 +01:00
app:layout_constraintStart_toStartOf="parent"
2020-04-04 22:11:00 +02:00
app:layout_constraintTop_toTopOf="parent"
2020-03-02 11:18:48 +01:00
app:layout_constraintVertical_bias="0.0"
2020-03-02 02:44:24 +01:00
tools:background="@color/material_red_400" />
<ImageView
android:id="@+id/backdrop"
android:layout_width="0dp"
2020-03-02 11:18:48 +01:00
android:layout_height="0dp"
2020-03-02 02:44:24 +01:00
android:alpha="0.1"
android:scaleType="centerCrop"
2020-03-03 09:26:17 +01:00
app:layout_constraintBottom_toBottomOf="@+id/true_backdrop"
2020-03-02 02:44:24 +01:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-03-02 11:18:48 +01:00
app:layout_constraintTop_toTopOf="@+id/true_backdrop"
2020-03-02 02:44:24 +01:00
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" />
2020-03-28 23:13:36 +01:00
<View
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="?android:attr/colorBackground"
2020-04-04 22:11:00 +02:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@id/backdrop_gradient" />
2020-03-28 23:13:36 +01:00
2020-03-02 02:44:24 +01:00
<View
android:id="@+id/top_view"
android:layout_width="match_parent"
2020-03-03 21:37:28 +01:00
android:layout_height="100dp"
app:layout_constraintBottom_toTopOf="@id/cover_card"
2020-03-02 11:18:48 +01:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-24 23:09:08 +02:00
app:layout_constraintHorizontal_bias="0.0"
2020-03-02 11:18:48 +01:00
app:layout_constraintStart_toStartOf="parent"
2020-03-03 21:37:28 +01:00
app:layout_constraintTop_toTopOf="parent" />
2020-03-02 02:44:24 +01:00
<com.google.android.material.card.MaterialCardView
android:id="@+id/cover_card"
2020-03-02 11:18:48 +01:00
android:layout_width="100dp"
2020-03-02 02:44:24 +01:00
android:layout_height="wrap_content"
2020-03-02 11:18:48 +01:00
android:layout_marginStart="16dp"
2020-04-04 22:11:00 +02:00
android:layout_marginTop="12dp"
2020-03-03 09:26:17 +01:00
android:layout_marginBottom="16dp"
2020-03-03 21:37:28 +01:00
app:layout_constraintStart_toStartOf="parent"
2020-04-04 22:11:00 +02:00
app:layout_constraintTop_toBottomOf="@id/top_view"
2020-03-02 02:44:24 +01:00
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"
2020-03-07 19:52:49 +01:00
android:clickable="true"
2020-04-09 02:32:36 +02:00
android:contentDescription="@string/cover_of_image"
2020-03-07 19:52:49 +01:00
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"
2020-03-02 02:44:24 +01:00
android:maxHeight="300dp"
tools:background="@color/material_grey_700"
tools:src="@mipmap/ic_launcher" />
</com.google.android.material.card.MaterialCardView>
<TextView
2020-04-17 02:41:07 +02:00
android:id="@+id/title"
2020-03-03 09:26:17 +01:00
style="@style/TextAppearance.MaterialComponents.Headline6"
2020-03-02 02:44:24 +01:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:layout_marginEnd="16dp"
android:ellipsize="end"
android:maxLines="4"
2020-04-09 02:32:36 +02:00
android:text="@string/title"
2020-03-02 02:44:24 +01:00
android:textIsSelectable="false"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
2020-03-03 21:37:28 +01:00
app:layout_constraintStart_toEndOf="@id/cover_card"
2020-03-02 02:44:24 +01:00
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"
2020-03-03 21:37:28 +01:00
android:layout_marginEnd="16dp"
2020-03-02 02:44:24 +01:00
android:ellipsize="end"
2020-03-03 21:37:28 +01:00
android:maxLines="2"
2020-04-09 02:32:36 +02:00
android:text="@string/author"
2020-03-03 21:37:28 +01:00
android:textAppearance="@style/TextAppearance.Regular.Body1.SemiBold"
android:textColor="?android:attr/textColorSecondary"
2020-03-02 02:44:24 +01:00
android:textIsSelectable="false"
app:layout_constraintEnd_toEndOf="parent"
2020-04-17 02:41:07 +02:00
app:layout_constraintStart_toStartOf="@id/title"
app:layout_constraintTop_toBottomOf="@+id/title" />
2020-03-02 02:44:24 +01:00
<TextView
2020-03-03 09:26:17 +01:00
android:id="@+id/manga_status"
2020-03-02 11:18:48 +01:00
style="@style/TextAppearance.Regular.Body1.Secondary"
2020-04-24 23:09:08 +02:00
android:layout_width="0dp"
2020-03-02 02:44:24 +01:00
android:layout_height="wrap_content"
2020-03-03 09:26:17 +01:00
android:layout_marginTop="4dp"
2020-04-24 23:09:08 +02:00
android:layout_marginEnd="16dp"
2020-04-09 06:25:38 +02:00
android:text="@string/unknown_status"
2020-03-02 02:44:24 +01:00
android:textIsSelectable="false"
2020-04-24 23:09:08 +02:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-17 02:41:07 +02:00
app:layout_constraintStart_toStartOf="@id/title"
2020-04-09 06:25:38 +02:00
app:layout_constraintTop_toBottomOf="@+id/manga_author" />
2020-03-02 02:44:24 +01:00
<com.google.android.material.textview.MaterialTextView
2020-03-03 09:26:17 +01:00
android:id="@+id/manga_source"
2020-03-02 02:44:24 +01:00
style="@style/TextAppearance.Regular.Body1.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
2020-03-03 21:37:28 +01:00
android:layout_marginEnd="16dp"
2020-03-02 02:44:24 +01:00
android:ellipsize="end"
android:maxLines="1"
android:textIsSelectable="false"
app:layout_constraintEnd_toEndOf="parent"
2020-04-17 02:41:07 +02:00
app:layout_constraintStart_toStartOf="@id/title"
2020-03-03 09:26:17 +01:00
app:layout_constraintTop_toBottomOf="@id/manga_status"
tools:text="Mangadex (EN)" />
2020-03-02 02:44:24 +01:00
<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"
2020-03-03 21:37:28 +01:00
app:constraint_referenced_ids="manga_source,cover_card" />
2020-03-02 02:44:24 +01:00
<LinearLayout
android:id="@+id/button_layout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="14dp"
2020-03-03 09:26:17 +01:00
android:orientation="horizontal"
2020-03-02 02:44:24 +01:00
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"
2020-04-11 06:05:59 +02:00
style="@style/Theme.Widget.Button.RoundedOutline"
2020-03-02 02:44:24 +01:00
android:text="@string/add_to_library"
app:icon="@drawable/ic_add_to_library_24dp" />
<com.google.android.material.button.MaterialButton
2020-03-03 09:26:17 +01:00
android:id="@+id/track_button"
2020-04-11 06:05:59 +02:00
style="@style/Theme.Widget.Button.RoundedOutline"
2020-03-02 02:44:24 +01:00
android:layout_marginStart="6dp"
2020-04-09 02:32:36 +02:00
android:text="@string/tracking"
2020-03-02 02:44:24 +01:00
app:icon="@drawable/ic_sync_black_24dp" />
2020-03-07 19:52:49 +01:00
2020-03-02 02:44:24 +01:00
<ImageView
2020-03-07 19:52:49 +01:00
android:id="@+id/webview_button"
2020-03-02 02:44:24 +01:00
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"
2020-04-09 02:32:36 +02:00
android:contentDescription="@string/open_in_web_view"
2020-04-04 22:11:00 +02:00
android:padding="5dp"
android:src="@drawable/ic_open_in_webview_white_24dp"
2020-04-09 02:32:36 +02:00
android:tooltipText="@string/open_in_web_view" />
2020-03-07 19:52:49 +01:00
<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"
2020-04-09 02:32:36 +02:00
android:contentDescription="@string/share"
2020-04-04 22:11:00 +02:00
android:padding="5dp"
android:src="@drawable/ic_share_white_24dp"
2020-04-09 02:32:36 +02:00
android:tooltipText="@string/share" />
2020-03-02 02:44:24 +01:00
</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"
2020-04-25 23:14:48 +02:00
android:layout_marginStart="18dp"
2020-03-02 11:18:48 +01:00
android:layout_marginTop="4dp"
2020-04-25 23:14:48 +02:00
android:layout_marginEnd="18dp"
2020-03-03 09:26:17 +01:00
android:clickable="true"
android:focusable="true"
2020-03-02 02:44:24 +01:00
android:maxLines="3"
2020-03-03 21:37:28 +01:00
app:layout_constraintBottom_toTopOf="@id/manga_genres_tags"
2020-03-02 02:44:24 +01:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/manga_summary_label"
2020-04-04 22:11:00 +02:00
tools:maxLines="10"
2020-03-02 02:44:24 +01:00
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
2020-03-03 09:26:17 +01:00
android:id="@+id/more_bg_gradient"
2020-04-25 23:14:48 +02:00
android:layout_width="60dp"
2020-03-07 19:52:49 +01:00
android:layout_height="16sp"
2020-03-02 02:44:24 +01:00
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
2020-03-03 09:26:17 +01:00
android:id="@+id/more_bg_solid"
2020-03-02 02:44:24 +01:00
android:layout_width="0dp"
2020-03-07 19:52:49 +01:00
android:layout_height="16sp"
2020-03-03 09:26:17 +01:00
android:layout_marginStart="45dp"
2020-03-02 02:44:24 +01:00
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" />
2020-03-03 09:26:17 +01:00
<View
android:id="@+id/more_guide"
android:layout_width="1dp"
android:layout_height="15sp"
app:layout_constraintEnd_toEndOf="@id/manga_summary"
2020-04-04 22:11:00 +02:00
app:layout_constraintTop_toBottomOf="@id/manga_summary" />
2020-03-03 09:26:17 +01:00
2020-03-02 02:44:24 +01:00
<com.google.android.material.button.MaterialButton
android:id="@+id/more_button"
2020-03-03 09:26:17 +01:00
style="@style/Theme.Widget.Button.TextButton"
2020-03-02 02:44:24 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-04-25 23:14:48 +02:00
android:layout_marginEnd="18dp"
2020-04-04 22:11:00 +02:00
android:text="@string/more"
2020-04-24 23:09:08 +02:00
android:textAlignment="viewEnd"
2020-03-03 09:26:17 +01:00
app:layout_constraintBottom_toBottomOf="@id/more_guide"
2020-04-04 22:11:00 +02:00
app:layout_constraintEnd_toEndOf="parent"
2020-03-03 09:26:17 +01:00
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" />
2020-03-02 02:44:24 +01:00
2020-03-24 07:47:40 +01:00
<androidx.constraintlayout.widget.Group
android:id="@+id/sub_item_group"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:constraint_referenced_ids="start_reading_button,
manga_summary,manga_summary_label,button_layout" />
2020-03-02 02:44:24 +01:00
<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"
app:atg_backgroundColor="@android:color/transparent"
2020-04-10 23:58:22 +02:00
app:atg_borderColor="@color/colorAccent"
2020-03-02 02:44:24 +01:00
app:atg_borderStrokeWidth="1dp"
2020-04-10 23:58:22 +02:00
app:atg_textColor="@color/colorAccent"
2020-03-02 02:44:24 +01:00
app:layout_constrainedHeight="true"
2020-03-03 09:26:17 +01:00
app:layout_constraintBottom_toTopOf="@id/less_button"
2020-03-02 02:44:24 +01:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-04-04 22:11:00 +02:00
app:layout_constraintTop_toBottomOf="@id/manga_summary"
tools:layout_height="100dp"
tools:visibility="visible" />
2020-03-02 02:44:24 +01:00
2020-03-03 09:26:17 +01:00
<com.google.android.material.button.MaterialButton
android:id="@+id/less_button"
style="@style/Theme.Widget.Button.TextButton"
2020-03-03 21:37:28 +01:00
android:layout_width="0dp"
2020-03-03 09:26:17 +01:00
android:layout_height="wrap_content"
2020-04-25 23:14:48 +02:00
android:layout_marginStart="18dp"
android:layout_marginEnd="18dp"
2020-04-04 22:11:00 +02:00
android:text="@string/less"
2020-03-03 09:26:17 +01:00
android:textAlignment="textEnd"
2020-04-04 22:11:00 +02:00
android:visibility="gone"
2020-03-03 09:26:17 +01:00
app:layout_constraintBottom_toTopOf="@id/start_reading_button"
2020-04-04 22:11:00 +02:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-03-03 09:26:17 +01:00
app:layout_constraintTop_toBottomOf="@id/manga_genres_tags"
2020-04-04 22:11:00 +02:00
app:rippleColor="@null"
tools:visibility="visible" />
2020-03-03 09:26:17 +01:00
2020-03-02 02:44:24 +01:00
<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"
2020-04-25 23:14:48 +02:00
android:layout_marginStart="24dp"
2020-04-04 22:11:00 +02:00
android:layout_marginTop="12dp"
2020-04-25 23:14:48 +02:00
android:layout_marginEnd="24dp"
2020-03-02 02:44:24 +01:00
android:text="@string/start_reading"
2020-04-04 22:11:00 +02:00
app:layout_constraintBottom_toTopOf="@id/chapter_layout"
2020-03-02 02:44:24 +01:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-03-03 09:26:17 +01:00
app:layout_constraintTop_toBottomOf="@+id/less_button"
2020-03-02 02:44:24 +01:00
tools:text="Continue Reading Chapter 17.1" />
2020-04-04 22:11:00 +02:00
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/chapter_layout"
android:layout_width="match_parent"
android:layout_marginTop="12dp"
2020-03-02 02:44:24 +01:00
android:layout_height="wrap_content"
2020-04-09 02:32:36 +02:00
android:tooltipText="@string/sort_and_filter"
2020-03-05 07:56:26 +01:00
app:layout_constraintEnd_toEndOf="parent"
2020-04-20 02:46:53 +02:00
android:background="@drawable/list_item_selector"
2020-04-04 22:11:00 +02:00
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/start_reading_button">
2020-03-02 02:44:24 +01:00
2020-04-04 22:11:00 +02:00
<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_marginStart="16dp"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:maxLines="1"
android:text="@string/chapters"
android:textSize="17sp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/filters_text"
app:layout_constraintStart_toStartOf="parent" />
<ImageView
android:id="@+id/filter_button"
android:tint="?colorAccent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-04-07 05:52:15 +02:00
android:layout_marginEnd="20dp"
2020-04-04 22:11:00 +02:00
android:background="@null"
android:padding="5dp"
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:textAlignment="textEnd"
android:textColor="?android:textColorHint"
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"
app:layout_constraintBaseline_toBaselineOf="@id/chapters_title"
tools:text="Read, Unread, Bookmarked, Downloaded, All" />
</androidx.constraintlayout.widget.ConstraintLayout>
2020-03-02 02:44:24 +01:00
</androidx.constraintlayout.widget.ConstraintLayout>