简体   繁体   中英

How to use setDragAndDrop() method?

I am using android studio. While using startDrag() method it is showing deprecated. But startDragAndDrop() is showing correctly which is included in api 24 i think . Can anyone show a little example of using startDragAndDrop() method ?. could not find by google search though. In project min api is 15 and max is 24 .

I guess google will publish a fix for this soon in the Support Lib, there should be a method to handle this issue like: ViewCompat.startDragAndDrop(...)

I created an issue here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM