2010-09-10 67 views
0

我想水平場經理作爲一個按鈕,焦點更改背景圖片:按鈕Horizo​​ntalFieldManager,更改焦點上的背景圖像?

http://i52.tinypic.com/2cgzqe0.jpg

設置背景圖片Horizo​​ntalFieldManager,它應該改變的onfocus(選擇),它應該作爲一個按鈕動作推一些其他的屏幕...

根據該Horizo​​ntalFieldManager我想添加圖像和標籤顯示一些信息...

我想它完全一樣的屏幕截圖,沒有編輯字段。 。

回答

1

如何爲它使用ListField,你想在列表中的單個組件或多個組件? 如果單u能移動到你選擇什麼,或開發自定義listfield

1

呼叫類似:

getMainManager().setBackground(BackgroundFactory.createLinearGradientBackground(Color.WHITE, Color.GRAY, Color.DIMGRAY, Color.DIMGRAY)); 

更改屏幕的背景。

0
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)' "