[Q] How to switch widgets on a conditional?
I am using Media Ultilties which gives a 0 or 1 conditional if music is playing or not. What I am trying to do is show a zooper music control widget if music is playing and to show a weather widget in the same place if there is no music playing.
I did see the trick to show the pause button or show the play button using this conditional. However, I am not sure how to apply that to an entire widget. Also, the trick I saw only moves the button off the widget screen (changes the X value to 1000), it doesn't actually hide it. So my questions are:
1) Is there a better command to hide elements on a conditional, or is changing the X value (or y value) the only option?
2) How do I apply this conditional to 2 entire widgets, so one shows if music is playing and the other if music is not playing. I have and know how to use tasker, if that is involved anywhere.
3) If I move an entire widget off the space by changing the X coordinates, does it still consume resources? By that I mean, is the widget still loaded and, for example, would the weather data continue to update?