ListView间隔设置颜色

AdaptergetView

if (position % 2 == 0)

holder.shoucangbt.setBackgroundColor(

Color.rgb(246, 246, 246));

else

convertView.findViewById(R.id.shoucangbt).setBackgroundColor(

Color.rgb(235, 235, 235)

);

posted @ 2013-08-27 20:50  西北野狼  阅读(231)  评论(0编辑  收藏  举报