I am trying to create a Custom Adapter
which can handle any kind of layout to be inflated. By generic I mean any kind of data to be set in an adapter and any kind of a layout could be used with Event Listeners to be set for an item.
For example:
I have a contact list and a country list. The Contact list has four items in its layout i.e person image, name, number and a checkBox. The Country List contains a CountryName(TextView) and a checkbox.
Is it possible for both to use the same adapter and that adapter handle all kind of items?
I wish the tick images would reset after clicking on any item.