I\'m using a list to populate a ListView (). The user is able to add items to the list. However, I need the items to be displayed at the top of the ListView. How do I insert
You should probably use an ArrayAdapter and use the insert(T, int) method.
Ex:
ListView lv = new ListView(context); ArrayAdapter adapter = new ArrayAdapter(context, R.id...); lv.setAdapter(adapter); ... adapter.insert("Hello", 0);