AquaMail Forum

English - Android => General Discussion => Topic started by: gregy1403 on March 27, 2016, 05:12:57 pm

Title: Swipe in widget?
Post 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
Title: Re: Swipe in widget?
Post by: Kostya Vasilyev on March 27, 2016, 05:40:53 pm
I don't see how this could be done....

Widget run inside the launcher and don't get notified about touch events.
Title: Re: Swipe in widget?
Post by: mikeone on March 27, 2016, 06:39:07 pm
yes, this feature would be really awesome  8)

Unfortunately there are "technical" limitations on system level.

Quote
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
Title: Re: Swipe in widget?
Post by: Kostya Vasilyev on March 27, 2016, 10:44:26 pm
And vertical swipe is limited to standard scrolling behavior -- lists and "stacks" (a little-used list-like UI element).