|
|
|
@ -12,37 +12,28 @@
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/guideline"
|
|
|
|
android:id="@+id/main_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/cover_card"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
|
|
|
android:weightSum="4"
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
android:id="@+id/guideline2"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
|
|
|
app:layout_constraintGuide_percent="0.21" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/cover_card"
|
|
|
|
android:id="@+id/cover_card"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
|
|
|
app:cardCornerRadius="4dp"
|
|
|
|
app:cardCornerRadius="4dp"
|
|
|
|
app:cardElevation="4dp"
|
|
|
|
app:cardElevation="4dp">
|
|
|
|
app:layout_constraintDimensionRatio="13:18"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/guideline2"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
<org.koitharu.kotatsu.base.ui.widgets.CoverImageView
|
|
|
|
android:id="@+id/imageView_cover"
|
|
|
|
android:id="@+id/imageView_cover"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
@ -56,25 +47,21 @@
|
|
|
|
android:id="@+id/text_container"
|
|
|
|
android:id="@+id/text_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_margin="8dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_weight="3">
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/guideline2"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="3"
|
|
|
|
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="20sp"
|
|
|
|
android:textSize="20sp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="@tools:sample/lorem[20]" />
|
|
|
|
tools:text="@tools:sample/lorem[15]" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_subtitle"
|
|
|
|
android:id="@+id/textView_subtitle"
|
|
|
|
@ -82,12 +69,11 @@
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="2"
|
|
|
|
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:textSize="14sp"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/textView_title"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/textView_title"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/textView_title"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_title"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_title"
|
|
|
|
tools:text="@tools:sample/lorem[20]" />
|
|
|
|
tools:text="@tools:sample/lorem[15]" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_author"
|
|
|
|
android:id="@+id/textView_author"
|
|
|
|
@ -95,7 +81,6 @@
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:requiresFadingEdge="horizontal"
|
|
|
|
android:requiresFadingEdge="horizontal"
|
|
|
|
android:singleLine="true"
|
|
|
|
|
|
|
|
android:textColor="?colorAccent"
|
|
|
|
android:textColor="?colorAccent"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/textView_title"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/textView_title"
|
|
|
|
@ -103,18 +88,6 @@
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_subtitle"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_subtitle"
|
|
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
|
|
|
|
|
|
|
|
<RatingBar
|
|
|
|
|
|
|
|
android:id="@+id/ratingBar"
|
|
|
|
|
|
|
|
style="@style/Widget.AppCompat.RatingBar.Small"
|
|
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
|
|
|
android:isIndicator="true"
|
|
|
|
|
|
|
|
android:max="100"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/textView_title"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_author"
|
|
|
|
|
|
|
|
tools:progress="70" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/info_layout"
|
|
|
|
android:id="@+id/info_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
@ -124,11 +97,8 @@
|
|
|
|
android:divider="?android:dividerHorizontal"
|
|
|
|
android:divider="?android:dividerHorizontal"
|
|
|
|
android:dividerPadding="8dp"
|
|
|
|
android:dividerPadding="8dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingStart="8dp"
|
|
|
|
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
|
|
|
|
android:showDividers="middle"
|
|
|
|
android:showDividers="middle"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/textView_title"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/textView_author">
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/ratingBar">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/rating_container"
|
|
|
|
android:id="@+id/rating_container"
|
|
|
|
@ -219,11 +189,11 @@
|
|
|
|
android:id="@+id/buttons_layout"
|
|
|
|
android:id="@+id/buttons_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:gravity="center_vertical|end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/textView_title"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/info_layout">
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/info_layout">
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
@ -231,6 +201,7 @@
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
app:icon="@drawable/ic_heart_outline"
|
|
|
|
app:icon="@drawable/ic_heart_outline"
|
|
|
|
app:iconGravity="textTop"
|
|
|
|
app:iconGravity="textTop"
|
|
|
|
app:iconPadding="0dp" />
|
|
|
|
app:iconPadding="0dp" />
|
|
|
|
@ -238,9 +209,10 @@
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_read"
|
|
|
|
android:id="@+id/button_read"
|
|
|
|
style="@style/Widget.MaterialComponents.Button"
|
|
|
|
style="@style/Widget.MaterialComponents.Button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:enabled="false"
|
|
|
|
android:enabled="false"
|
|
|
|
android:text="@string/read"
|
|
|
|
android:text="@string/read"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
android:textAllCaps="false"
|
|
|
|
@ -251,46 +223,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<org.koitharu.kotatsu.base.ui.widgets.ChipsView
|
|
|
|
<org.koitharu.kotatsu.base.ui.widgets.ChipsView
|
|
|
|
android:id="@+id/chips_tags"
|
|
|
|
android:id="@+id/chips_tags"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
|
|
|
app:chipSpacingHorizontal="6dp"
|
|
|
|
app:chipSpacingHorizontal="6dp"
|
|
|
|
app:chipSpacingVertical="6dp"
|
|
|
|
app:chipSpacingVertical="6dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/guideline2"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/text_container" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/buttons_layout" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/desc_header"
|
|
|
|
android:id="@+id/desc_header"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingTop="16dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:text="@string/description"
|
|
|
|
android:text="@string/description"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="18sp"
|
|
|
|
android:textSize="18sp"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/guideline2"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/chips_tags" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/chips_tags" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_description"
|
|
|
|
android:id="@+id/textView_description"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
android:lineSpacingMultiplier="1.2"
|
|
|
|
android:lineSpacingMultiplier="1.2"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/guideline2"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/desc_header"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/desc_header"
|
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
tools:ignore="UnusedAttribute"
|
|
|
|
tools:text="@tools:sample/lorem/random[25]" />
|
|
|
|
tools:text="@tools:sample/lorem/random[25]" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
|
|