Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/106.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在ios上更改ListView的背景颜色_Ios_Titanium_Appcelerator - Fatal编程技术网

如何在ios上更改ListView的背景颜色

如何在ios上更改ListView的背景颜色,ios,titanium,appcelerator,Ios,Titanium,Appcelerator,我正在尝试更改ios上ListView项目的背景颜色 对于Android,我的index.tss中有这个,它运行良好: '#ListView': { top:'0%', left:'0%', height:'100%', width:'98%', zIndex:1, backgroundImage: "/main.png", backgroundColor:'#2e2f30', borderColor:'transparent', borderWidth

我正在尝试更改ios上ListView项目的背景颜色

对于Android,我的index.tss中有这个,它运行良好:

'#ListView': { 
  top:'0%', 
  left:'0%',
  height:'100%',
  width:'98%',
  zIndex:1,
  backgroundImage: "/main.png",
  backgroundColor:'#2e2f30',
  borderColor:'transparent', 
  borderWidth:0, 
  borderRadius:0, 
  separatorColor:'#2d2f2f', 
  opacity:1
我在每个项目中使用ImageView来创建和显示一个可滚动的图像列表

在安卓系统上,每一行都能完美地显示图像,图像周围没有像ios上那样的白色边框

我想删除每行图像周围的白色背景

钛合金SDK 8.0


问候

很抱歉回答晚了

我已将项目设置为透明,谢谢mukesh.kumar先生


关于

你能告诉我们它现在在ios上是什么样子吗?你想在哪个iPhone上设置背景色?我认为在iOS 7上,每个列表项的默认背景色都是白色。尝试将其更改为透明。如何将行的颜色从白色更改为任何其他颜色?更改颜色甚至不起作用。能否显示列表模板?需要查看XML,很高兴它有所帮助。:)