Hey all, I've seen some of the demos to create a list that you can add items to (toggle list). There's an example in the API Demos (http:// tinyurl.com/yfscgl9).
This creates an activity that is nothing but a toggle list (it extends the ListActivity) I want to add a list that I can add items to the bottom of by using an EditText area and a button. But I want this to be PART of my activity, not the entire activity. I've tried the code below, but it's not working: private ListView mAdapter; private ArrayAdapter<String> listViewArrayAdapter; private ArrayList<String> mStrings = new ArrayList<String>(); setContentView(R.layout.test); mAdapter = new ListView(this); listViewArrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, mStrings); mAdapter.setAdapter(listViewArrayAdapter); The layout has a List view: <ListView android:id="@id/android:list" android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1" android:stackFromBottom="true" android:transcriptMode="normal" /> I don't know if I'm going in the right direction. Can someone explain how to do this? Thanks in advance.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en