Open AndroidDeveloperLB opened 6 years ago
As you can see here https://github.com/flyingrub/Alea-Live-Wallpaper-Android/blob/master/app/src/main/java/flying/grub/alea/AleaService.java#L150. It scales according to the width resolution.
@flyingrub But this causes the height to be cropped, not showing the entire animation content...
You can adapt it to fit your need by using the height too :)
Which of the ways I've mentioned would that be? The second one? Also, how do I do that, including the other ways to do it that I've mentioned?
The gif is already always centered. You can play with the scale factor to crop it as you want
I didn't talk about center. It should always be centered, in all cases. I was talking about the resizing methods. How do I achieve each of those?
I've noticed that this sample just shows the GIF, without showing entire content in case it's too large. This can be a problem in case you show a GIF animation that doesn't fit the screen of the device. Even on the sample you can see it:
Do you know how to do any of the following with it: