AquaMail Forum
English - Android => General Discussion => Topic started by: gregy1403 on March 27, 2016, 05:12:57 pm
-
Hi
Is there a chance for a feature to swipe and delete message in widget? That would be awesome ;)
Thank you
-
I don't see how this could be done....
Widget run inside the launcher and don't get notified about touch events.
-
yes, this feature would be really awesome 8)
Unfortunately there are "technical" limitations on system level.
Widget limitations
While widgets could be understood as "mini apps", there are certain limitations that are important to understand before you start to embark on designing your widget:
Gestures
Because widgets live on the home screen, they have to co-exist with the navigation that is established there. This limits the gesture support that is available in a widget compared to a full-screen app. While apps for example may support a view pager that allows the user to navigate between screens laterally, that gesture is already taken on the home screen for the purpose of navigating between home panels.
The only gestures available for widgets are:
- Touch
- Vertical swipe
http://developer.android.com/design/patterns/widgets.html
-
And vertical swipe is limited to standard scrolling behavior -- lists and "stacks" (a little-used list-like UI element).