I want to know if is it a good way to use the same adapter for more than one listview.
in my code i have many listviews and each one contains the same UL components like imageview and textview, so is it good to use `MyAdapter extends BaseAdapter` for each of them ? or it is better to make adapter for each one?
if i have to use one adapter, how to handle the different onclick actions for the button, imageview and textview for each listview ?
class MyAdapter extends BaseAdapter {
public MyAdapter() {
}
@Override
public int getCount() {
// TODO Auto-generated method stub
return data.size();
}
@Override
public Object getItem(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public long getItemId(int position) {
// TODO Auto-generated method stub
return position;
}
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
// TODO Auto-generated method stub
return null;
}
}