Browse Source

FileDetialsSharing...: add minHeight to content instead of scrollview

This still keeps the minimum height, but doesn't center the content vertically which looked odd

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Álvaro Brey Vilas 3 years ago
parent
commit
f6298f7904

+ 3 - 3
app/src/main/res/layout/file_details_sharing_process_fragment.xml

@@ -30,8 +30,7 @@
 
 
     <androidx.core.widget.NestedScrollView
     <androidx.core.widget.NestedScrollView
         android:layout_width="match_parent"
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:minHeight="400dp"
+        android:layout_height="0dp"
         android:padding="@dimen/standard_padding"
         android:padding="@dimen/standard_padding"
         app:layout_constraintBottom_toTopOf="@+id/share_process_btn_cancel"
         app:layout_constraintBottom_toTopOf="@+id/share_process_btn_cancel"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
@@ -40,7 +39,8 @@
 
 
         <androidx.constraintlayout.widget.ConstraintLayout
         <androidx.constraintlayout.widget.ConstraintLayout
             android:layout_width="match_parent"
             android:layout_width="match_parent"
-            android:layout_height="wrap_content">
+            android:layout_height="wrap_content"
+            android:minHeight="400dp">
 
 
             <androidx.appcompat.widget.AppCompatTextView
             <androidx.appcompat.widget.AppCompatTextView
                 android:id="@+id/share_process_edit_share_link"
                 android:id="@+id/share_process_edit_share_link"