Search code examples
androidbitmaplivewallpaper

Live Wallpaper Scaling bitmap hundred of times at different positions


I am making a live wallpaper app in android studio in which i need bubble effect like in this gif bubble effect

I am developing it naively i.e. no library. What I have tried is creating several hundred rect object and drawing bitmap with different destination rect as time passes. Problem with this approach is that I will have to create several thousands of rect objects to achieve this effect. Any Suggestion. I need this effect on touch.


Solution

  • I used Matrix for scaling and for other things.