Placed add in library group in details into a scrollview

This commit is contained in:
Jay 2020-05-04 14:47:06 -04:00
parent 0eaa5f419c
commit af817fb13c

View File

@ -149,18 +149,26 @@
app:barrierDirection="bottom" app:barrierDirection="bottom"
app:constraint_referenced_ids="manga_source,cover_card" /> app:constraint_referenced_ids="manga_source,cover_card" />
<HorizontalScrollView
<LinearLayout android:id="@+id/sub_button_scroll"
android:id="@+id/button_layout"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="16dp" android:clipToPadding="false"
android:layout_marginTop="14dp"
android:orientation="horizontal"
app:layout_constraintBottom_toTopOf="@id/manga_summary_label" app:layout_constraintBottom_toTopOf="@id/manga_summary_label"
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/bottom_line"> app:layout_constraintTop_toBottomOf="@id/bottom_line"
android:requiresFadingEdge="horizontal"
android:scrollbars="none">
<LinearLayout
android:id="@+id/button_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton <com.google.android.material.button.MaterialButton
android:id="@+id/favorite_button" android:id="@+id/favorite_button"
@ -201,6 +209,7 @@
android:src="@drawable/ic_share_white_24dp" android:src="@drawable/ic_share_white_24dp"
android:tooltipText="@string/share" /> android:tooltipText="@string/share" />
</LinearLayout> </LinearLayout>
</HorizontalScrollView>
<com.google.android.material.textview.MaterialTextView <com.google.android.material.textview.MaterialTextView
android:id="@+id/manga_summary_label" android:id="@+id/manga_summary_label"
@ -214,7 +223,7 @@
android:textIsSelectable="false" android:textIsSelectable="false"
android:textSize="17sp" android:textSize="17sp"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/button_layout" app:layout_constraintTop_toBottomOf="@id/sub_button_scroll"
tools:text="About this manga" /> tools:text="About this manga" />
<TextView <TextView
@ -284,7 +293,7 @@
android:id="@+id/sub_item_group" android:id="@+id/sub_item_group"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:constraint_referenced_ids="manga_summary,manga_summary_label,button_layout" /> app:constraint_referenced_ids="manga_summary,manga_summary_label,sub_button_scroll" />
<me.gujun.android.taggroup.TagGroup <me.gujun.android.taggroup.TagGroup
android:id="@+id/manga_genres_tags" android:id="@+id/manga_genres_tags"
@ -341,11 +350,11 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/chapter_layout" android:id="@+id/chapter_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_marginTop="12dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:background="@drawable/list_item_selector"
android:tooltipText="@string/sort_and_filter" android:tooltipText="@string/sort_and_filter"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
android:background="@drawable/list_item_selector"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/start_reading_button"> app:layout_constraintTop_toBottomOf="@id/start_reading_button">
@ -360,20 +369,20 @@
android:maxLines="1" android:maxLines="1"
android:text="@string/chapters" android:text="@string/chapters"
android:textSize="17sp" android:textSize="17sp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/filters_text" app:layout_constraintEnd_toStartOf="@id/filters_text"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<ImageView <ImageView
android:id="@+id/filter_button" android:id="@+id/filter_button"
android:tint="?colorAccent"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="12dp" android:layout_marginEnd="12dp"
android:background="@null" android:background="@null"
android:padding="5dp" android:padding="5dp"
android:src="@drawable/ic_filter_list_white_24dp" android:src="@drawable/ic_filter_list_white_24dp"
android:tint="?colorAccent"
app:layout_constraintBottom_toBottomOf="@id/chapters_title" app:layout_constraintBottom_toBottomOf="@id/chapters_title"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/chapters_title" /> app:layout_constraintTop_toTopOf="@id/chapters_title" />
@ -388,11 +397,11 @@
android:padding="5dp" android:padding="5dp"
android:textAlignment="textEnd" android:textAlignment="textEnd"
android:textColor="?android:textColorHint" android:textColor="?android:textColorHint"
app:layout_constraintBaseline_toBaselineOf="@id/chapters_title"
app:layout_constraintBottom_toBottomOf="@id/filter_button" app:layout_constraintBottom_toBottomOf="@id/filter_button"
app:layout_constraintEnd_toStartOf="@id/filter_button" app:layout_constraintEnd_toStartOf="@id/filter_button"
app:layout_constraintStart_toEndOf="@+id/chapters_title" app:layout_constraintStart_toEndOf="@+id/chapters_title"
app:layout_constraintTop_toTopOf="@id/filter_button" app:layout_constraintTop_toTopOf="@id/filter_button"
app:layout_constraintBaseline_toBaselineOf="@id/chapters_title"
tools:text="Read, Unread, Bookmarked, Downloaded, All" /> tools:text="Read, Unread, Bookmarked, Downloaded, All" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>