1

Android: reusable adapter and different onclicklistener

view story
linux-howto

http://stackoverflow.com – 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 (HowTos)