I have an ArrayList
of Strings and I want to display them in a ListView
, but I also want to choose different layouts for every single row of the ListView
(based on some conditions I have), so what type of Adapter do I need?
I have already used a custom CursorAdapter
and it has a newView method that let you choose the row layout for every single entry in the cursor, is there something like that but that works with an ArrayList?