我正在玩Titanium Mobile。我构建了一个TableView并在iPhone上测试它。一切正常,我启用了TableView的“选择”属性。
我无法轻易弄清楚的是如何使用文本颜色,以便当选择一行时背景为蓝色,文本从黑色或灰色切换为白色,这样对比度就像在iPhone上。
有什么想法吗?
THX 沙皇
答案 0 :(得分:3)
我不知道你的单元格中是否有UILabel,但处理这个问题的基本方法是通过API提供的属性
selectedBackgroundColor - the background color to render when the row cell is selected
selectedBackgroundImage - the background image to render when the row cell is selected
selectedColor - color of the row during selection