我需要background
(Drawable
)为我layout
创建的item
ListView
Adapter
。要求是在我的Viewgroup
构造函数中执行此操作,但我缺少父inflate
到private class MAdapter extends CursorAdapter {
private Drawable defaultDrawable;
public MAdapter(Context context, Cursor c, boolean autoRequery) {
super(context, c, autoRequery);
this.defaultDrawable = // here I need to get Drawable which is defined as background for the view which is going to be used for `View` for the list row item
}
。还有其他方法吗?
{{1}}