LWUIT ComboBox 文本颜色问题
尽管我在主题中将其设置为黑色,但组合框文本颜色为白色。 TextField 的文本颜色应该是黑色。为什么 ComboBox 文本颜色不是黑色?
主题:
fgColor=FFFFFF
bgColor=000000
sel#fgColor=FFFFFF
sel#bgColor=EE8207
ComboBox.fgColor=000000
ComboBox.bgColor=FFFFFF
ComboBox.sel#fgColor=000000
ComboBox.sel#bgColor=FFFFFF
TextField.fgColor=000000
TextField.bgColor=FFFFFF
TextField.sel#fgColor=000000
TextField.sel#bgColor=FFFFFF
The ComboBox text color is white even though I've set it to black in my theme. The text color of TextField is black as supposed to. How come the ComboBox text color isn't black?
The theme:
fgColor=FFFFFF
bgColor=000000
sel#fgColor=FFFFFF
sel#bgColor=EE8207
ComboBox.fgColor=000000
ComboBox.bgColor=FFFFFF
ComboBox.sel#fgColor=000000
ComboBox.sel#bgColor=FFFFFF
TextField.fgColor=000000
TextField.bgColor=FFFFFF
TextField.sel#fgColor=000000
TextField.sel#bgColor=FFFFFF
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以像这样更改文本颜色
这会成功!
You can change the text color like this
This will work out!!
您应该使用 hexColors:“0x000000”或“0xffffff”
您还可以使用以下方法在应用程序中设置颜色。
lwuit 使用 int 来设置颜色,使用以下函数来计算 int。
像这样设置颜色。
You should use hexColors: "0x000000" or "0xffffff"
You can also set the color in your app using following methods.
lwuit uses int's to set a color, to calculate the int use the following function.
set the color like this.
你可以这样使用,
你是否使用ResourceEdit。如果您不使用意味着使用资源编辑并创建主题。
you can use like this,
Are you using ResourceEdit. If u r not using means use the ResourceEdit and create the theme.