|
@@ -50,23 +50,21 @@
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
android:id="@+id/refresh_layout"
|
|
android:id="@+id/refresh_layout"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
<androidx.core.widget.NestedScrollView
|
|
|
android:id="@+id/scroll_view"
|
|
android:id="@+id/scroll_view"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:fillViewport="true"
|
|
android:fillViewport="true"
|
|
|
android:fitsSystemWindows="false"
|
|
android:fitsSystemWindows="false"
|
|
|
android:focusable="true"
|
|
android:focusable="true"
|
|
|
- android:padding="0dp"
|
|
|
|
|
- android:scrollbarStyle="outsideOverlay"
|
|
|
|
|
android:scrollbars="vertical">
|
|
android:scrollbars="vertical">
|
|
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
android:orientation="vertical">
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
@@ -74,8 +72,8 @@
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:background="@drawable/bg_gradient_mask"
|
|
android:background="@drawable/bg_gradient_mask"
|
|
|
- android:paddingHorizontal="16dp"
|
|
|
|
|
- android:paddingVertical="8dp"
|
|
|
|
|
|
|
+ android:paddingTop="8dp"
|
|
|
|
|
+ android:paddingBottom="4dp"
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
<com.google.android.material.card.MaterialCardView
|
|
@@ -83,11 +81,11 @@
|
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="0dp"
|
|
android:layout_height="0dp"
|
|
|
app:cardCornerRadius="8dp"
|
|
app:cardCornerRadius="8dp"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
app:layout_constraintDimensionRatio="5:7"
|
|
app:layout_constraintDimensionRatio="5:7"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:layout_constraintWidth_percent="0.32"
|
|
|
|
|
|
|
+ app:layout_constraintWidth_percent="0.3"
|
|
|
app:strokeWidth="0dp">
|
|
app:strokeWidth="0dp">
|
|
|
|
|
|
|
|
<io.legato.kazusa.ui.widget.image.CoverImageView
|
|
<io.legato.kazusa.ui.widget.image.CoverImageView
|
|
@@ -105,6 +103,7 @@
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_gravity="center"
|
|
android:layout_gravity="center"
|
|
|
android:orientation="vertical"
|
|
android:orientation="vertical"
|
|
|
|
|
+ android:layout_marginEnd="16dp"
|
|
|
android:padding="12dp"
|
|
android:padding="12dp"
|
|
|
app:layout_constraintBottom_toBottomOf="@id/cd_cov"
|
|
app:layout_constraintBottom_toBottomOf="@id/cd_cov"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
@@ -182,24 +181,15 @@
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
-
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
- android:id="@+id/ll_info"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
- android:background="?attr/colorSurface"
|
|
|
|
|
- android:orientation="vertical"
|
|
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
- app:layout_constraintTop_toBottomOf="@id/ll_cover">
|
|
|
|
|
-
|
|
|
|
|
<HorizontalScrollView
|
|
<HorizontalScrollView
|
|
|
android:id="@+id/scroll_labels"
|
|
android:id="@+id/scroll_labels"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:paddingStart="16dp"
|
|
|
|
|
|
|
+ android:layout_marginStart="16dp"
|
|
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
android:scrollbars="none"
|
|
android:scrollbars="none"
|
|
|
- app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/cd_cov">
|
|
|
|
|
|
|
|
<io.legato.kazusa.ui.widget.LabelsBar
|
|
<io.legato.kazusa.ui.widget.LabelsBar
|
|
|
android:id="@+id/lb_kind"
|
|
android:id="@+id/lb_kind"
|
|
@@ -209,6 +199,17 @@
|
|
|
|
|
|
|
|
</HorizontalScrollView>
|
|
</HorizontalScrollView>
|
|
|
|
|
|
|
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
|
+ android:id="@+id/ll_info"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="0dp"
|
|
|
|
|
+ android:layout_weight="1"
|
|
|
|
|
+ android:background="?attr/colorSurface"
|
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/ll_cover">
|
|
|
|
|
+
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
android:id="@+id/cl_buttons"
|
|
android:id="@+id/cl_buttons"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
@@ -217,7 +218,7 @@
|
|
|
android:gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
|
android:orientation="horizontal"
|
|
android:orientation="horizontal"
|
|
|
android:weightSum="4"
|
|
android:weightSum="4"
|
|
|
- app:layout_constraintTop_toBottomOf="@id/scroll_labels">
|
|
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
<com.google.android.material.button.MaterialButton
|
|
|
android:id="@+id/btn_shelf"
|
|
android:id="@+id/btn_shelf"
|
|
@@ -287,8 +288,8 @@
|
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
- android:textSize="16sp"
|
|
|
|
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
|
|
+ android:textSize="17sp"
|
|
|
android:textStyle="bold"
|
|
android:textStyle="bold"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
@@ -300,7 +301,7 @@
|
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
android:singleLine="true"
|
|
android:singleLine="true"
|
|
|
android:textSize="14sp"
|
|
android:textSize="14sp"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
@@ -314,7 +315,7 @@
|
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginStart="16dp"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
android:singleLine="true"
|
|
android:singleLine="true"
|
|
|
android:textColor="?attr/colorPrimary"
|
|
android:textColor="?attr/colorPrimary"
|
|
|
android:textSize="14sp"
|
|
android:textSize="14sp"
|
|
@@ -350,50 +351,41 @@
|
|
|
<TextView
|
|
<TextView
|
|
|
android:id="@+id/tv_detail"
|
|
android:id="@+id/tv_detail"
|
|
|
android:layout_width="0dp"
|
|
android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"
|
|
|
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:layout_marginHorizontal="16dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
|
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
|
|
+ android:paddingBottom="120dp"
|
|
|
android:clickable="true"
|
|
android:clickable="true"
|
|
|
android:focusable="true"
|
|
android:focusable="true"
|
|
|
android:lineSpacingExtra="4dp"
|
|
android:lineSpacingExtra="4dp"
|
|
|
- android:minHeight="48dp"
|
|
|
|
|
- android:paddingBottom="120dp"
|
|
|
|
|
android:text="@string/book_intro"
|
|
android:text="@string/book_intro"
|
|
|
android:textIsSelectable="true"
|
|
android:textIsSelectable="true"
|
|
|
android:textSize="14sp"
|
|
android:textSize="14sp"
|
|
|
android:visibility="visible"
|
|
android:visibility="visible"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
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/tv_chapter"
|
|
app:layout_constraintTop_toBottomOf="@id/tv_chapter"
|
|
|
tools:text="@string/book_intro" />
|
|
tools:text="@string/book_intro" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
+ </LinearLayout>
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
|
|
|
|
|
- <LinearLayout
|
|
|
|
|
- android:id="@+id/ll_read"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
|
|
+ <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
|
|
|
+ android:id="@+id/btn_read"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="bottom"
|
|
|
|
|
- android:gravity="end"
|
|
|
|
|
- android:orientation="horizontal">
|
|
|
|
|
-
|
|
|
|
|
- <com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
|
|
|
|
|
- android:id="@+id/btn_read"
|
|
|
|
|
- android:layout_width="wrap_content"
|
|
|
|
|
- android:layout_height="wrap_content"
|
|
|
|
|
- android:layout_margin="16dp"
|
|
|
|
|
- android:contentDescription="@string/reading"
|
|
|
|
|
- android:minWidth="56dp"
|
|
|
|
|
- android:text="@string/reading"
|
|
|
|
|
- android:textColor="?attr/colorOnPrimary"
|
|
|
|
|
- app:backgroundTint="?attr/colorTertiary"
|
|
|
|
|
- app:icon="@drawable/ic_bottom_books"
|
|
|
|
|
- app:iconTint="?attr/colorOnPrimary" />
|
|
|
|
|
- </LinearLayout>
|
|
|
|
|
|
|
+ android:layout_margin="16dp"
|
|
|
|
|
+ android:contentDescription="@string/reading"
|
|
|
|
|
+ android:minWidth="56dp"
|
|
|
|
|
+ android:text="@string/reading"
|
|
|
|
|
+ android:textColor="?attr/colorOnPrimary"
|
|
|
|
|
+ app:backgroundTint="?attr/colorTertiary"
|
|
|
|
|
+ app:icon="@drawable/ic_bottom_books"
|
|
|
|
|
+ app:iconTint="?attr/colorOnPrimary"
|
|
|
|
|
+ app:layout_anchor="@id/refresh_layout"
|
|
|
|
|
+ app:layout_anchorGravity="bottom|end" />
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|