Live Wallpaper not functioning correctly after rotation

edited March 20 in Android Mode

Hey, After fiddling around for a while I've created a live wallpaper in the new beta mode, and I'm quite pleased with the result. However, if I enable rotation in my launcher (Google Now) and switch between horizontal en vertical orientation a few times, the animated elements are not alligned correctly anymore, the background however is still visible. If it helps, I am testing on a S7 Edge.

Thanks in advance!

Answers

  • @emieldelft===

    you probably have to use the onConfigurationChanged() method, declaring (manifest) that you are coding for the type of configchanges you want (in your case that is probably "orientation" && "screenSize":

    android:configChanges="orientation|screenSize"

    In the method you specify what to do: change x y for some shape, set an image in place of another one and so on.

Sign In or Register to comment.