about: prevent ui from being clipped in landscape
Fix an accidental regression in the about UI that caused it to be cut off it landscape. It will now scroll.
This commit is contained in:
parent
6d9c9f65c2
commit
1a0ff53d67
2 changed files with 133 additions and 130 deletions
|
@ -161,8 +161,6 @@ class FastScrollView @JvmOverloads constructor(
|
|||
// off.
|
||||
val maxEntries = (height - (binding.scrollThumb.height * 2)) / textHeight
|
||||
|
||||
logD("${ceil(indicators.size / maxEntries).toInt()}")
|
||||
|
||||
if (indicators.size > maxEntries) {
|
||||
val truncateInterval = ceil(indicators.size / maxEntries).toInt()
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fitsSystemWindows="true"
|
||||
android:background="?attr/colorSurface"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical">
|
||||
|
||||
<androidx.appcompat.widget.Toolbar
|
||||
|
@ -16,15 +16,19 @@
|
|||
style="@style/Toolbar.Style.Icon.Down"
|
||||
app:title="@string/label_about" />
|
||||
|
||||
<androidx.core.widget.NestedScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.material.card.MaterialCardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="@dimen/spacing_medium"
|
||||
app:cardBackgroundColor="?attr/colorSurface"
|
||||
app:cardCornerRadius="0dp"
|
||||
app:cardElevation="0dp"
|
||||
app:strokeWidth="1dp"
|
||||
app:strokeColor="@color/divider_color"
|
||||
app:cardCornerRadius="0dp">
|
||||
app:strokeWidth="1dp">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -60,10 +64,10 @@
|
|||
android:id="@+id/about_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:paddingEnd="@dimen/spacing_small"
|
||||
android:paddingStart="@dimen/spacing_small"
|
||||
android:layout_marginTop="@dimen/spacing_small"
|
||||
android:gravity="center"
|
||||
android:paddingStart="@dimen/spacing_small"
|
||||
android:paddingEnd="@dimen/spacing_small"
|
||||
android:text="@string/info_app_desc"
|
||||
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
@ -163,5 +167,6 @@
|
|||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
</com.google.android.material.card.MaterialCardView>
|
||||
</androidx.core.widget.NestedScrollView>
|
||||
</LinearLayout>
|
||||
</layout>
|
Loading…
Reference in a new issue