I\'ve found loads of different ways of accomplishing this but I\'m not sure what\'s the best for my scenario.
This is my Java code for the listview:
you need to create a custom adapter.
custom adapter
check this answer
and then have a custom xml too.
custom xml
then set the custom adapter to your listview.
listview
listAdapter = new CustomListAdapter(YourActivity.this , R.layout.custom_list , mList); mListView.setAdapter(listAdapter);