public class WallAdapter extends BaseAdapter {
Context context;
ArrayList<LinkedHashMap<String, String>> items;
public WallAdapter(Context context,
ArrayList<LinkedHashMap<String, String>> items) {
super();
this.context = context;
this.items = items;
}
static class ViewHolder {
TextView groupTitle;
LinearLayout imgLayout;
RelativeLayout addLayout;
TextView text;
}
@Override
public int getCount() {
return items.size();
}
@Override
public Object getItem(int position) {
return items.get(position);
}
@Override
public long getItemId(int position) {
return items.indexOf(getItem(position));
}
public View getView(int position, View convertView, ViewGroup parent) {
/*тут код*/
}