You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@ Download fonts instead of bundling them in the app resources.
36
36
Demonstrates basic Drag and Drop functionality.
37
37
-[Drag and Drop - Helper](user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropWithHelper.kt):
38
38
Drag and Drop using the DragHelper and DropHelper from DragAndDropHelper library
39
+
-[Drag and Drop in Compose](user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropUsingCompose.kt):
40
+
Drag and drop in Compose
39
41
-[Drag and Drop in MultiWindow mode](user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropMultiWindow.kt):
40
42
Drag and drop to another app visible in multiwindow mode
41
43
-[Drag and Drop using the RichContentReceiver](user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropRichContentReceiverFragment.kt):
Copy file name to clipboardExpand all lines: samples/user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropMultiWindow.kt
+10-21Lines changed: 10 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -60,8 +60,7 @@ class DragAndDropMultiWindow : Fragment(R.layout.fragment_dnd_multiwindow) {
Copy file name to clipboardExpand all lines: samples/user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropWithHelper.kt
+7-17Lines changed: 7 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -71,16 +71,11 @@ class DragAndDropWithHelper : Fragment(R.layout.fragment_drag_and_drop_with_help
71
71
}
72
72
73
73
@RequiresApi(Build.VERSION_CODES.N)
74
-
privatefunsetupDrag(draggableView:ImageView) {
75
-
/*
76
-
Usual way of implementing the drag would involve the use of setLongClickListener method ,
77
-
defining clipdata , building shadow and starting the drag as showcased in
0 commit comments