1
我正在尝试设置与ColorDrawable
界让backgroundDrawable到View
,它只是不能正常工作,使用下面的代码:ColorDrawable不会在其边界画
ColorDrawable d = new ColorDrawable(getContext().getResources()
.getColor(R.color.red));
d.setBounds(0, 0, 20, 20);
convertView.setBackgroundDrawable(d);
结果是convertView背景得到填补这里有红色。
谢谢。
你的要求究竟是什么? –