XWidgetSoft Forum
https://www.bbs.xwidget.com/

Create "MULTI-BACKGROUND" widget with menuItems
https://www.bbs.xwidget.com/viewtopic.php?f=23&t=5310
Page 1 of 1

Author:  Tony [ November 29th, 2014, 8:16 pm ]
Post subject:  Create "MULTI-BACKGROUND" widget with menuItems

[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 554 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
changeImgSrc.jpg [ 373.32 KiB | Viewed 6822 times ]


2. Send this widget to your android phone and click it to show these two Menuitem
Attachment:
MenuItems.jpg
MenuItems.jpg [ 284.57 KiB | Viewed 6822 times ]


3. click menuitem then the image control "bg" will load the bg2.png
Attachment:
MultiBackground.jpg
MultiBackground.jpg [ 434.41 KiB | Viewed 6822 times ]

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/