I'm trying to create a simple Android Launcher.
I'm also using a live wallpaper (Kustom LWP) that I can tap certain areas of to perform actions.
I'm able to see the wallpaper using these style properties:
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowShowWallpaper">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
But if I try to tap an item on my wallpaper, the touch doesn't pass through.
I've tried android:clickable="false and android:focusable="false", and setting all of my views to have a setOnTouchListener that returns false, but none of these fix the issue.
How would I go about doing this?
Answering my own question: after doing some digging in Launcher3, I found that I needed to use
WallpaperManager'ssendWallpaperCommandfunction on the touch listener for your homescreen view:...
...
And now my wallpaper can receive touch input.