Java和Listview:JSON值更改颜色显示

时间:2015-11-16 08:05:46

标签: java json listview colors

below is my mainactivity java code
i have a json file which returns the foll values

[{" COMPONENT":" XXXX"" FLAG":" T"" SAMPLINGPOINT&#34 ;: " DDDD"},{" COMPONENT":" YYYYY"" FLAG":" F"&#34 ; SAMPLINGPOINT":" {GGGG {1}}     如果json值FLAG:T显示那么listview颜色应该是红色,否则如果FLAG:F然后绿色...任何帮助??

package com.webservice1;

g"},{"COMPONENT":"xxxx","FLAG":"F","SAMPLINGPOINT":"dddd"},{"COMPONENT":"xxxx","FLAG":"T","SAMPLINGPOINT":"dddd"}]

0 个答案:

没有答案