Pārlūkot izejas kodu

FileActionsBottomSheet: add drag handle for accesibility

Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
Álvaro Brey 2 gadi atpakaļ
vecāks
revīzija
0e0935bef6

+ 0 - 1
app/src/main/java/com/nextcloud/ui/fileactions/FileActionsBottomSheet.kt

@@ -50,7 +50,6 @@ import com.owncloud.android.utils.theme.ViewThemeUtils
 import javax.inject.Inject
 
 // TODO give events back
-// TODO drag handle (needs material 1.7.0)
 // TODO theming
 class FileActionsBottomSheet private constructor() : BottomSheetDialogFragment(), Injectable {
 

+ 5 - 0
app/src/main/res/layout/file_actions_bottom_sheet.xml

@@ -33,6 +33,10 @@
         android:orientation="vertical"
         app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
 
+        <com.google.android.material.bottomsheet.BottomSheetDragHandleView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content" />
+
         <TextView
             android:id="@+id/title"
             android:layout_width="match_parent"
@@ -47,6 +51,7 @@
         <androidx.core.widget.NestedScrollView
             android:layout_width="match_parent"
             android:layout_height="wrap_content">
+            <!-- TODO maybe convert to listview instead -->
             <LinearLayout
                 android:id="@+id/file_actions_list"
                 android:layout_width="match_parent"