Overlay widget clickable actions

Post your questions and help other users.

Moderator: Martin

Post Reply
Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Overlay widget clickable actions

Post by Wibbly » 27 Nov 2017 15:20

Multiple clickable actions seem to be formed on a grid, where each grid location responds to the appropriate click type. I want the widget to be sensitive to ANY type of click ANYWHERE. So if someone, say, swipes instead of single clicks by accident I can make the same action still happen.

Is this possible? If so, how?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Overlay widget clickable actions

Post by Desmanto » 27 Nov 2017 15:26

Just apply all possible action to the widget using the same action; all of click, long click, double click, swipe in all direction. Remember this only works for widget when shown as overlay; not as widget in homescreen.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Overlay widget clickable actions

Post by Wibbly » 27 Nov 2017 15:31

That doesn't seem to work. As I said "Multiple clickable actions [types] seem to be formed on a grid, where each grid location responds to the appropriate click type"

So with a click action and with, say, a swipe down action the screen is divided into two. One half only responds to the single click. The other half only responds to the swipe down. I'm after the whole area responding to either type of interaction

Using 8.0 on a Pixel 2, if that makes any difference. Is behaviour on your phone any different to my experience?

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Overlay widget clickable actions

Post by Desmanto » 27 Nov 2017 16:26

Uh, you add a new action using + sign, which will add a new section (split the grid).

Single grid clickable part can be assigned to all of possible action. (It seems to be undocumented, maybe)
Just tap at the "notepad icon" after you have created one action, it will popup choices to select another type of action.
Widget single grid multi action.png
Widget single grid multi action.png (109.06 KiB) Viewed 14310 times
Each type of widget action can be assigned to different action. Example, my clipboard widget has double click to refresh widget and long click to close it.
In your case, you want all doing the same. So you should apply the same action to all possible widget action.

If you need to delete the action for certain widget action, just tap this "notepad icon" again, select the action you wanna delete, scroll to top and choose the blank one (doing nothing, essentially delete the action).
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Overlay widget clickable actions

Post by Wibbly » 27 Nov 2017 16:30

Thanks! Will give that a go...

Wibbly
Posts: 418
Joined: 17 Mar 2014 09:02

Re: Overlay widget clickable actions

Post by Wibbly » 28 Nov 2017 06:04

Worked, thanks :-)

Post Reply