I’m trying to create a listView so that each item inside the list is composed of a TextView and one (or more) ImageView.
So far I’ve managed to get the listView to work with items that are only TextViews by using a ArrayList<String> and a ArrayAdapter<String>adapter.
Is there a way to achieve what I want? And would other ways be easier? (Like using TableRows, but I’m not sure if they can be configured to have the onClickListener)
Create a `list_items.xml` with a layout like this:
Then create a BaseAdapter:
An call it like this:
I am assuming that your pass your data in an ArrayList containing a HashMap for each row: