Android 可扩展列表视图更改可绘制
我在expandablelistview中有一个组项Android 可扩展列表视图更改可绘制,android,background,expandablelistview,Android,Background,Expandablelistview,我在expandablelistview中有一个组项 if (convertView == null) { LayoutInflater infalInflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = infalInflater.inflate(R.layout.elvcitiesgr
if (convertView == null) {
LayoutInflater infalInflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = infalInflater.inflate(R.layout.elvcitiesgroupitemopt,
null);
}
我怎样才能在getgroupview中更改文本视图的背景绘图功能?我自己发现了这一点——这是为所有有同样想法的人准备的
TVSet.setBackground( context.getResources().getDrawable(R.drawable.mbutt_setup1));