Android - ArrayAdapter duplicates ListView items
问题 I have a ListView widget (positioned below other UI elements) that is part of an Activity that does not extend ListActivity . I am trying to write a basic feature that adds extra items to the ListView upon clicking a Button . This data is obtained from an EditText . I define the Adapter , an ArrayAdapter in my case, for the ListView in onCreate() and set the adapter for the ListView using setListAdapter() . However when I try to add an extra item to the ListView two items are added in the