I need something like this in the picture. enter image description here

I can’t use Rotate animation, and also for some reason I didn’t find any libraries on a githaba that could help, please guide me on the right path)

  • YESPB
  • @ YuriySPb translated, help? - Nikolay Kolomiytsev

1 answer 1

On a pure Android, you will certainly be able to do this, but it is difficult. I would look at 2d game engines - for example libGDX. There will be something like this: https://github.com/libgdx/libgdx/wiki/Spritebatch,-textureregions,-and-sprite Sprite

Where it will be drawn.

private Sprite sprite; ... texture = new Texture(Gdx.files.internal("image.png")); sprite = new Sprite(texture, 20, 20, 50, 50); sprite.setPosition(10, 10); sprite.setRotation(45); ... batch.begin(); sprite.draw(batch); batch.end(); 
  • But you do not know, perhaps there are libraries with similar functionality of randomly issuing items from the array - Nikolay Kolomiytsev