LWUIT ComboBox弹出主题问题 [英] LWUIT ComboBox popup theming problem
问题描述
我想自定义LWUIT中ComboBox弹出列表的外观.但是,当我尝试更改LWUIT Theme Creator中的ComboBox
,ComboBoxFocus
,ComboBoxItem
,ComboBoxList
,ComboBoxPopup
组件时,什么都没发生. Theme Creator中的弹出窗口预览仍会在白色背景上以黑色文本显示弹出窗口.
我想念什么吗?
如何更改此弹出窗口的主题?我正在使用LWUIT 1.4
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
推荐答案
在LWUIT资源编辑中使用以下样式,
Use the following styles in LWUIT resource edit,
-
Unselected#ComboBoxItem#Color
用于不集中的列表项. -
Unselected#ComboBoxPopup#Color
用于不集中的列表项. -
Selected#ComboBoxItem#Color
用于关注列表项.
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.
这篇关于LWUIT ComboBox弹出主题问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!