[Tutorial] How to change widget background with menuItem
We can change widget's background image with last version of XWidget(etc: v1.07)
Demo widget download:
Attachment:
iCalendar3(2).xwp [326.9 KiB]
Downloaded 541 times
with the "iCalendar 3" demo widget ,wo can show how the new "muti-background" function works.
1. Create MenuItem in WidgetDesigner, set the click action etc: !ChangeImgSrc=bg,bg2.png , the "bg" is the Image Control name, and the "bg2.png" is the new image file name
Attachment:
changeImgSrc.jpg [ 373.32 KiB | Viewed 6690 times ]
2. Send this widget to your android phone and click it to show these two Menuitem
Attachment:
MenuItems.jpg [ 284.57 KiB | Viewed 6690 times ]
3. click menuitem then the image control "bg" will load the bg2.png
Attachment:
MultiBackground.jpg [ 434.41 KiB | Viewed 6690 times ]