开发者

change the backgoroun images dynamically in blackberry eclipse

开发者 https://www.devze.com 2023-01-03 18:11 出处:网络
Pl开发者_运维问答ease help me how to change the selected background image dynamically please give me sample example...

Pl开发者_运维问答ease help me how to change the selected background image dynamically please give me sample example...

I Need to change My application background image when i select the particular image from drop-down list, If click on apply button that image will be display in the background.

Thanking you


I suggest you try hooking up your button to a listener, then using Background to create your background before using setBackground() to change the background.

If this doesn't update the way you want, overwrite the layout() method in your screen and call the setBackground() in there, then call UIApplication.getUIApplication().relayout() to get it to layout the screen again (be sure to do it in a synchronize block!)

Good luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号