If (kongqizhiliangflag = 0) {// synchronous Air Quality
Wuranzhuangkuang1.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang2.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang3.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang4.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang5.setbackgroundcolor (color. parsecolor ("#000000 "));
} Else if (kongqizhiliangflag = 1)
{
Wuranzhuangkuang1.setbackgroundresource (R. drawable. airzhizhen );
Wuranzhuangkuang2.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang3.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang4.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang5.setbackgroundcolor (color. parsecolor ("#000000 "));
} Else if (kongqizhiliangflag = 2)
{
Wuranzhuangkuang1.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang2.setbackgroundresource (R. drawable. airzhizhen );
Wuranzhuangkuang3.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang4.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang5.setbackgroundcolor (color. parsecolor ("#000000 "));
} Else if (kongqizhiliangflag = 3)
{
Wuranzhuangkuang1.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang2.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang3.setbackgroundresource (R. drawable. airzhizhen );
Wuranzhuangkuang4.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang5.setbackgroundcolor (color. parsecolor ("#000000 "));
} Else if (kongqizhiliangflag = 4 ){
Wuranzhuangkuang1.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang2.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang3.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang4.setbackgroundresource (R. drawable. airzhizhen );
Wuranzhuangkuang5.setbackgroundcolor (color. parsecolor ("#000000 "));
} Else if (kongqizhiliangflag = 5 ){
Wuranzhuangkuang1.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang2.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang3.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang4.setbackgroundcolor (color. parsecolor ("#000000 "));
Wuranzhuangkuang5.setbackgroundresource (R. drawable. airzhizhen );
}
How much I have spent on converting the image background