Widget shadowed clickable regions

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Widget shadowed clickable regions

Post by vamzicool » 28 Nov 2017 12:10

I have a single widget on my home screen which i have named dashboard to be used to display any information from any of my flows. It has a single text element which is set to a global variable. Thus setting this variable sets the text of this widget. I have several clickable areas to this widget which executes various assigned flows linked to each and displays corresponding text. I use the topmost clickable portion when clicked to display all the various one word flow names associated with all the clickable areas. But if this widget is resized , these names do not point to the correct clickable region. Thus, i think the solution to this problem is by shadowing out the clickable areas i will be able to understand where to click to call the corresponding flow. And this shaded region should minimize and expand correspondingly when the widget is resized. How do i accomplish this shading of the clickable region?
Attachments
dashboard.png
dashboard.png (916.98 KiB) Viewed 11187 times

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

Re: Widget shadowed clickable regions

Post by Desmanto » 28 Nov 2017 14:31

+1 for this. Even thought it is not critical yet for me.

For workaround, i ever think to make rectangle for each button action. But it is not efficient, I have to create them and align them again one by one.
The best workaround would be to create the same grid in excel. Use the same pixel size for the whole screen, merge the cell as needed.
Then copy those grids, paste it ms paint, crop it to the same resolution as the widget. Insert that picture and put it at the back layer (kinda make it as background).
You can use picture editor such as irfan view to change the cell color to transparant and save it as png (so your widget background is shown properly)

You can use any picture editor to do it too, but excel (or any other worksheet program) seems easier and more intuitive.
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.

vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Re: Widget shadowed clickable regions

Post by vamzicool » 28 Nov 2017 15:15

Thank you for the prompt reply Desmanto. Yes that is a good idea and I will try it and see whether it works but I wish there was an inbuilt way to accomplish the same effect.

vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Re: Widget shadowed clickable regions

Post by vamzicool » 29 Nov 2017 16:51

Thank you Desmanto, your background image trick worked. I didn't had to work with a computer.i simply took a screen shot of the widget editor of automagic, cropped that image and used it as the background image. It may not be perfect but it serves my purpose. :-)
Attachments
background_tiles.png
background_tiles.png (985.94 KiB) Viewed 11142 times

Locked