uptechteam / MotionViews-Android

Code Guide: How to create Snapchat-like image stickers and text stickers.
https://blog.uptech.team/how-to-create-snapchat-like-stickers-for-android-50512957c351
MIT License
479 stars 112 forks source link

Remove TextEntity By Drag & Drop #39

Open NikhilUsadadiya opened 6 years ago

NikhilUsadadiya commented 6 years ago

Hey UptechTeam, Hope you are doing well. Currently, I am using this MotionViews-Android Library in my project. To delete an entity from motionview "motionView.deletedSelectedEntity()" method is called to delete it. But, I get stuck on one mechanism that, I want to delete an entity by dragging it & dropping it on an imageview. I didn't get any position or method to do it. How can I apply delete(by drag & drop) to this code? Any help will be appreciable. Thanks in advance.

AndriyBas commented 6 years ago

Hello @nikhil94090 . Currently, there's no such functionality. You need to implement it yourself.

NikhilUsadadiya commented 6 years ago

Okk Thanks, But can you help me to figure out where should I get the drop event of the TextEntity. As I tried it myself all time I get is just nullpointer exception due to no textentity found at the time of release().

AndriyBas commented 6 years ago

Nope, sorry, cannot help, it's a very specific request.