我正在玩 Titanium Mobile。我构建了一个 TableView 并在 iPhone 上进行了测试。一切正常,我为 TableView 启用了“选择”属性。
我不容易理解的是如何将文本颜色输入,以便选择一行时,背景为蓝色,文本S从我的黑色或灰色切换到白色,因此对比度就像在iPhone上一样.
有任何想法吗?
THX沙皇
我不知道您的单元格中是否有 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