- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
public class SinglePictureAdapter extends BaseAdapter {
private int viewType;
private int resource;
private Context context;
public SinglePictureAdapter(Context context, int resource, int viewType) {
this.viewType = viewType;
this.resource = resource;
this.context = context;
}
@Override
public int getItemViewType(int position) {
return viewType;
}
@Override
public int getCount() {
return 1;
}
@Override
public Object getItem(int position) {
return null;
}
@Override
public long getItemId(int position) {
return 0;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = inflater.inflate(resource, null);
}
return convertView;
}
}
bormand 01.05.2012 09:45 # 0
rat4 01.05.2012 10:00 # −1
АНДРОИДОПРОБЛЕМЫ
enikey87 01.05.2012 11:10 # 0
3.14159265 01.05.2012 14:20 # +5
TypicalClass.java
MAKAKA 24.08.2021 15:58 # 0
MAKAKA 24.08.2021 16:02 # 0
MAKAKA 24.08.2021 16:05 # 0
MAKAKA 24.08.2021 16:08 # 0
MAPTbIwKA 24.08.2021 16:10 # 0
MAPTbIwKA 24.08.2021 16:15 # 0
MAKAKA 24.08.2021 16:18 # 0
MAPTbIwKA 24.08.2021 16:18 # 0