按钮HorizontalFieldManager,更改焦点上的背景图像?
问题描述:
我想水平场经理作为一个按钮,焦点更改背景图片:按钮HorizontalFieldManager,更改焦点上的背景图像?
设置背景图片HorizontalFieldManager,它应该改变的onfocus(选择),它应该作为一个按钮动作推一些其他的屏幕...
根据该HorizontalFieldManager我想添加图像和标签显示一些信息...
我想它完全一样的屏幕截图,没有编辑字段。 。
答
如何为它使用ListField,你想在列表中的单个组件或多个组件? 如果单u能移动到你选择什么,或开发自定义listfield
答
呼叫类似:
getMainManager().setBackground(BackgroundFactory.createLinearGradientBackground(Color.WHITE, Color.GRAY, Color.DIMGRAY, Color.DIMGRAY));
更改屏幕的背景。
答
onFocus="this.style.width = '260px'; this.style.background='url(Icalorieimage/account/username_text.png)'"
onBlur="this.style.width = '260px'; this.style.background='url(Icalorieimage/account/username_text.png)' "