我想为我的图像视图设置可触摸的,以及如何在列表视图中获取每行的图像视图的位置?
public View newView(Context context, Cursor cursor, ViewGroup parent) {
// when the view will be created for first time,
// we need to tell the adapters, how each item will look
LayoutInflater inflater = LayoutInflater.from(parent.getContext());
View retView = inflater.inflate(R.layout.list_shipments, parent, false);
return retView;
}
@Override
public void bindView(View view, Context context, Cursor cursor) {
}
}