You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! In Android 11 a new system zoom animation was added for static and live wallpapers, so when the user pulls down the quick settings panel or swipe up to the launcher's app drawer, the wallpaper will be zoomed in/out.
For live wallpapers there is a callback for this, very similar to the onOffsetsChanged() callback in AndroidLiveWallpaperService.java, but in libGDX the implementation of the callback is currently missing.
To implement the zoom callback,
the overridden method from Android's WallpaperService would have to be implemented into the AndroidWallpaperEngine in AndroidLiveWallpaperService.java
an new method notifyZoomChanged() would have to be implemented into the AndroidWallpaperEngine to call the new method zoomChange(float) of the interface AndroidWallpaperListener.java
I would like to implement the wallpaper zoom animation into my 3D Van Gogh live wallpaper Lamartine :)
I tried to extend AndroidLiveWallpaperService but because the global variables of AndroidLiveWallpaper are protected, a custom implementation of the zoom callback is impossible. Thank you and a Happy New Year!
Version of libGDX
1.11.0
Please select the affected platforms
Android
iOS
HTML/GWT
Windows
Linux
macOS
The text was updated successfully, but these errors were encountered:
patzly
added a commit
to patzly/libgdx
that referenced
this issue
Aug 12, 2023
Issue details
Hi! In Android 11 a new system zoom animation was added for static and live wallpapers, so when the user pulls down the quick settings panel or swipe up to the launcher's app drawer, the wallpaper will be zoomed in/out.
For live wallpapers there is a callback for this, very similar to the
onOffsetsChanged()
callback in AndroidLiveWallpaperService.java, but in libGDX the implementation of the callback is currently missing.To implement the zoom callback,
WallpaperService
would have to be implemented into theAndroidWallpaperEngine
in AndroidLiveWallpaperService.javanotifyZoomChanged()
would have to be implemented into theAndroidWallpaperEngine
to call the new methodzoomChange(float)
of the interface AndroidWallpaperListener.javaI would like to implement the wallpaper zoom animation into my 3D Van Gogh live wallpaper Lamartine :)
I tried to extend
AndroidLiveWallpaperService
but because the global variables ofAndroidLiveWallpaper
are protected, a custom implementation of the zoom callback is impossible. Thank you and a Happy New Year!Version of libGDX
1.11.0
Please select the affected platforms
The text was updated successfully, but these errors were encountered: