我试图在基于标志的列表视图中更改一些项目的文本颜色(或背景颜色)。经过长时间的搜索,我没有找到如何做到这一点。我会在特定操作后调用下面的循环来更改颜色:
ListView _listView = (ListView) findViewById(R.id.listView2);
for (int i=0;i<=_listView.getCount();i++)
{
if(Falg == True)
{
//here i want to change the list view item color or backgroud color
}
}