class Adapter extends BaseAdapter {
private LayoutInflater mLayoutInflater;
public Adapter() {
mLayoutInflater = LayoutInflater.from(mContext);
}
public int getCount() {
return 0;
}
public Object getItem(int position) {
return null;
}
public long getItemId(int position) {
return 0;
}
public View getView(final int position, View convertView, ViewGroup parent) {
if(convertView == null) {
convertView = mLayoutInflater.inflate(R.layout., parent, false);
}
return convertView;
}
}
Android之BaseAdapter结构,拿来用原则
最新推荐文章于 2025-09-08 00:09:35 发布
