Browse Source

Update UI

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 year ago
parent
commit
45a9b4948e

+ 1 - 1
app/src/main/java/com/owncloud/android/ui/dialog/SendFilesDialog.kt

@@ -73,6 +73,7 @@ class SendFilesDialog: BottomSheetDialogFragment(R.layout.send_files_fragment),
         binding = SendFilesFragmentBinding.inflate(inflater, container, false)
 
         setupSendButtonRecyclerView()
+        viewThemeUtils?.platform?.colorViewBackground(binding.bottomSheet, ColorRole.SURFACE_VARIANT)
 
         return binding.root
     }
@@ -92,7 +93,6 @@ class SendFilesDialog: BottomSheetDialogFragment(R.layout.send_files_fragment),
 
         binding.sendButtonRecyclerView.layoutManager = GridLayoutManager(requireActivity(), 4)
         binding.sendButtonRecyclerView.adapter = SendButtonAdapter(sendButtonDataList, clickListener)
-        viewThemeUtils?.platform?.colorViewBackground(binding.sendButtonRecyclerView, ColorRole.SURFACE_VARIANT)
     }
 
     private fun setupSendButtonClickListener(sendIntent: Intent): SendButtonAdapter.ClickListener {

+ 20 - 4
app/src/main/res/layout/send_files_fragment.xml

@@ -30,10 +30,26 @@
     android:layout_gravity="bottom"
     app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
 
-    <androidx.recyclerview.widget.RecyclerView
-        android:id="@+id/send_button_recycler_view"
+    <LinearLayout
+        android:id="@+id/bottom_sheet"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        tools:listitem="@layout/send_button" />
+        android:orientation="vertical">
 
-</FrameLayout>
+        <com.google.android.material.bottomsheet.BottomSheetDragHandleView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"/>
+
+        <androidx.recyclerview.widget.RecyclerView
+            android:id="@+id/send_button_recycler_view"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            tools:listitem="@layout/send_button"/>
+
+        <View
+            android:layout_width="match_parent"
+            android:layout_height="@dimen/standard_padding"/>
+
+    </LinearLayout>
+
+</FrameLayout>