"fixing" live wallpaper in portrait mode

I’m trying to find the “easiest” way to fix my live wallpapers in portrait mode, and for now, the only way I have found is to rotate the entire canvas 90 degrees counterclockwise and shift it “down” to fit the screen when the device is in landscape mode. But this solution doesn’t work very well, and I think it’s not enough (because I have a lot of bitmaps in different positions).

Has anyone found a simpler and more effective solution for artificially correcting live wallpapers in only one orientation mode?

+8
android live-wallpaper
source share
1 answer

If you look at the example that google gives, there is an onSurfacedChanged () method that handles screen rotation. I have not tested it yet, but if you do not call there, I think the surface will not change.

http://developer.android.com/resources/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/CubeWallpaper1.html

0
source share

All Articles