0

Here is a code snippet

int bgColor = Integer.parseInt(summaryReportObj.backgroundColor, 16);
lv0.setBackgroundColor(bgColor);

The bgColor is blue and shows up only when I touch the text. I want the color to show all the time. When I set background image it displays just great.

What am I doing wrong?

4

1 回答 1

0

如果我的猜测是正确的并且 lv0 是 ListView 那么你应该尝试在你放入列表的实际列表视图项目上设置你的颜色。

于 2012-05-12T02:48:44.767 回答