Hello,
I am developing an Android Wear app with B4A.
I'm having great success except for one thing – the swipe to dismiss gesture.
I am scrolling an image left/right/up/down on the Wear device screen. It all works except when I try to move the image to the right. Android thinks I'm doing a Swipe-To-Dismiss gesture and wants to exit the app.
I have the following code from an Android site: https://developer.android.com/training/wearables/ui/exit.html
I'm hoping that this can be put into the Manifest in some way. I have the following code from one of the Wear examples on this forum:
In my feeble attempt, I tried the following, but it complains there is no such attribute: android:windowSwipeToDismiss
Is there a way I disable the SwipeToDismiss gesture on an Android Wear device?
Thanks,
Barry.
I am developing an Android Wear app with B4A.
I'm having great success except for one thing – the swipe to dismiss gesture.
I am scrolling an image left/right/up/down on the Wear device screen. It all works except when I try to move the image to the right. Android thinks I'm doing a Swipe-To-Dismiss gesture and wants to exit the app.
I have the following code from an Android site: https://developer.android.com/training/wearables/ui/exit.html
B4X:
<style name="AppTheme" parent="@android:style/Theme.DeviceDefault.Light">
<item name="android:windowSwipeToDismiss">false</item>
</style>
I'm hoping that this can be put into the Manifest in some way. I have the following code from one of the Wear examples on this forum:
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.DeviceDefault.Light")
In my feeble attempt, I tried the following, but it complains there is no such attribute: android:windowSwipeToDismiss
B4X:
SetApplicationAttribute(android:windowSwipeToDismiss, "false")
Is there a way I disable the SwipeToDismiss gesture on an Android Wear device?
Thanks,
Barry.
Last edited: