Author Topic: Swipe in widget?  (Read 2514 times)

gregy1403

  • Newbie
  • *
  • Posts: 10
Swipe in widget?
« 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

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Swipe in widget?
« Reply #1 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.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mikeone

  • Hero Member
  • *****
  • Posts: 2762
Re: Swipe in widget?
« Reply #2 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

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Swipe in widget?
« Reply #3 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).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/