public class SwipeAdapter extends BaseAdapter {
private Context context;
private List<Integer> list;
public SwipeAdapter(Context context,List<Integer>list) {
this.context=context;
this.list=list;
}
@Override
public int getCount() {
return 20;
}
@Override
public Object getItem(int i) {
return null;
}
@Override
public long getItemId(int i) {
return 0;
}
@Override
public View getView(int i, View convertView, ViewGroup viewGroup) {
View view;
if(convertView==null)
{
view= LayoutInflater.from(parent.getContext()).Inflate(R.layout.item_koloda,parent,false);
}else {
view=convertView;
}
return view;
}
}