/MotionViews-Android

Code Guide: How to create Snapchat-like stickers for Android. Check article at

Primary LanguageJavaMIT LicenseMIT

MotionViews-Android

Code Guide : How to create Snapchat-like stickers for Android

After spending 2000+ hours and releasing 4+ successful apps working with image transformations, we’ve decided to share our experience with the community.

Task

So the task is pretty simple: add the ability to move, scale and rotate stickers on Android.

Even though it sounds easy, there are a couple of challenges as well. First, there is a zillion of screen sizes of Android devices, and we’d better support them all (or as many as we can). Moreover, it could be the case that you would need to enable users to save/edit their selfies. And if they open their custom works on other devices — the screen size might change, the loaded images might be of a different quality, etc.

As you might have guessed, the task is getting more complicated now.

The solution needs to work on different screen sizes and be independent of the image quality.

Solution

MotionViews-Android - is fully functional app that meets the requirements.

Check the Medium article about the details of the implementation:

Feel free to use the code for your own purposes.

The video of what we got in the end on the YouTube.