|
|
|
@ -31,87 +31,79 @@
|
|
|
|
tools:background="@tools:sample/backgrounds/scenic"
|
|
|
|
tools:background="@tools:sample/backgrounds/scenic"
|
|
|
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
|
|
|
tools:ignore="ContentDescription,UnusedAttribute" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
|
|
android:id="@+id/layout_titles"
|
|
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/imageView_cover"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintVertical_bias="0">
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:id="@+id/textView_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="3"
|
|
|
|
android:maxLines="3"
|
|
|
|
android:textAppearance="?attr/textAppearanceHeadlineSmall"
|
|
|
|
android:textAppearance="?attr/textAppearanceHeadlineSmall"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
|
|
|
tools:text="@tools:sample/lorem[15]" />
|
|
|
|
tools:text="@tools:sample/lorem[15]" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_subtitle"
|
|
|
|
android:id="@+id/textView_subtitle"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="3"
|
|
|
|
android:maxLines="3"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_title"
|
|
|
|
|
|
|
|
tools:text="@tools:sample/lorem[12]" />
|
|
|
|
tools:text="@tools:sample/lorem[12]" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_author"
|
|
|
|
android:id="@+id/textView_author"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginHorizontal="14dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
|
|
|
android:background="@drawable/list_selector"
|
|
|
|
android:background="@drawable/list_selector"
|
|
|
|
android:padding="2dp"
|
|
|
|
android:padding="2dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="?attr/colorTertiary"
|
|
|
|
android:textColor="?attr/colorTertiary"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintHorizontal_bias="0"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_subtitle"
|
|
|
|
|
|
|
|
app:layout_constraintWidth_default="wrap"
|
|
|
|
|
|
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
tools:text="@tools:sample/full_names" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_state"
|
|
|
|
android:id="@+id/textView_state"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginHorizontal="16dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_author"
|
|
|
|
|
|
|
|
tools:drawableStart="@drawable/ic_state_finished"
|
|
|
|
tools:drawableStart="@drawable/ic_state_finished"
|
|
|
|
tools:text="Finished" />
|
|
|
|
tools:text="Finished" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
<Space
|
|
|
|
android:id="@+id/barrier_header"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
app:barrierDirection="bottom"
|
|
|
|
|
|
|
|
app:barrierMargin="8dp"
|
|
|
|
|
|
|
|
app:constraint_referenced_ids="imageView_cover,button_read" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
<include
|
|
|
|
android:id="@+id/info_layout"
|
|
|
|
android:id="@+id/info_layout"
|
|
|
|
layout="@layout/layout_details_info"
|
|
|
|
layout="@layout/layout_details_info"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/textView_state" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_favorite"
|
|
|
|
android:id="@+id/button_favorite"
|
|
|
|
@ -126,7 +118,7 @@
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/button_read"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/button_read"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/imageView_cover"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/button_read" />
|
|
|
|
app:layout_constraintTop_toTopOf="@id/button_read" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
@ -143,9 +135,13 @@
|
|
|
|
app:iconPadding="8dp"
|
|
|
|
app:iconPadding="8dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/button_favorite"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/button_favorite"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/info_layout"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="@string/_continue" />
|
|
|
|
tools:text="@string/_continue" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<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"
|
|
|
|
@ -157,7 +153,7 @@
|
|
|
|
app:chipSpacingVertical="6dp"
|
|
|
|
app:chipSpacingVertical="6dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/barrier_header" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/layout_titles" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/textView_description"
|
|
|
|
android:id="@+id/textView_description"
|
|
|
|
|