The samples in this directory address various various ways of implementing Drag and Drop, along with implementation of RichContentReceiver
- Drag and Drop using Views This sample demonstrate basic implementation with onLongClickListener and implementing DragListener callback
- Drag and Drop in Multi-Window mode This sample demonstrate the drag-and-drop across apps.
- Drag and Drop using DragAndDropHelper Library
This sample uses
the
Jetpack Drag and Drop Library
to demonstrate drag-and-drop. - Drag and Drop in compose This sample showcase drag-and-drop implementation in compose.
- Accepting rich media This sample showcase how rich media can be handled using RichContentReceiver unified Api which works for drag-and-drop, keyboard and clipboard
Important: All samples run independent of each other.
Copyright 2023 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.