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

How to specify the location of the bitmap? #13

Closed VamChao closed 7 years ago

VamChao commented 7 years ago

I want to place the bitmap according to coordinate shots at the specified location , then what should I do? Thank you!

AndriyBas commented 7 years ago

@VamChao in MotionEntity there's a method moveCenterTo(PointF moveToCenter). It accepts absolute coordinates in params. You can use it to move text entity whenever you want. (See MainActivity, method addTextSticker for how it is used)