Closed Mause closed 9 years ago
See https://stackoverflow.com/questions/3200551/unable-to-modify-arrayadapter-in-listview-unsupportedoperationexception for details
TL;DR: Android's ArrayAdapter must be initialized with a List if you want to be able to add items after initialization. The SArrayAdapter class forces Array use
ArrayAdapter
List
SArrayAdapter
EDIT: By added to I mean with ArrayAdaper.add and ArrayAdapter.addAll
ArrayAdaper.add
ArrayAdapter.addAll
Thanks for reporting!
Thanks for fixing!
See https://stackoverflow.com/questions/3200551/unable-to-modify-arrayadapter-in-listview-unsupportedoperationexception for details
TL;DR: Android's
ArrayAdapter
must be initialized with aList
if you want to be able to add items after initialization. TheSArrayAdapter
class forces Array useEDIT: By added to I mean with
ArrayAdaper.add
andArrayAdapter.addAll