Is there no default simple list string handler built in?
ListView
is a simple list string handler that's built in.
Is there any way to do this without creating a subclass with an arrayadapter?
You don't have to subclass ArrayAdapter
to use it. Binding the data to ListView
is one line of code:
final ListView list = ...;
list.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, data));
In your case, data
would either be a List<String>
or a String[]
.