From c6f414813e7b8a3f85159042f1684491005ceb3a Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Fri, 25 Nov 2022 11:40:58 -0500 Subject: [PATCH] Working resizing and such --- app/src/main/AndroidManifest.xml | 1 + .../java/io/heckel/ntfy/ui/DetailActivity.kt | 12 +- app/src/main/res/layout/activity_detail.xml | 110 +++++++++--------- app/src/main/res/values/styles.xml | 7 +- 4 files changed, 75 insertions(+), 55 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4cbdf60..98c36ee 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -38,6 +38,7 @@ + android:visibility="gone" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" android:layout_height="0dp" app:layout_constraintBottom_toTopOf="@id/detail_message_bar" app:layout_constraintVertical_bias="0.0"> - - - - + - - - + android:id="@+id/detail_no_notifications_inner" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"> + + + + + + + + app:layout_constraintVertical_weight="1" app:layout_constraintTop_toBottomOf="@+id/detail_no_notifications" app:layout_constraintVertical_bias="1.0"> + android:layout_marginBottom="4dp" + android:layout_marginEnd="5dp" android:layout_marginTop="4dp"> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 65047ca..dbd1db9 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -31,8 +31,13 @@ 5dp - + +