LWUIT ComboBox popup theming problem

僤鯓⒐⒋嵵緔 提交于 2019-12-24 15:56:38

问题


I want to customize the look of the ComboBox pop-up list in LWUIT. Nonetheless when I tried to change the ComboBox, ComboBoxFocus, ComboBoxItem, ComboBoxList, ComboBoxPopup components in LWUIT Theme Creator, nothing happened. The popup preview in Theme Creator still shows the pop-up in black text on white background. Am I missing something? How to change the theme of this pop-up? I am using LWUIT 1.4


回答1:


Use the following styles in LWUIT resource edit,

  • Unselected#ComboBoxItem#Color for unfocused list Item.
  • Unselected#ComboBoxPopup#Color for unfocused list Item.
  • Selected#ComboBoxItem#Color for focused list Item.

Note: uncheck derive checkbox and change the fore color or background color. Because its use default style When the derive checkbox is selected.



来源:https://stackoverflow.com/questions/6893089/lwuit-combobox-popup-theming-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!