Make FramementLayout demo better... and, um actually work.

Also some other small cleanup.

Change-Id: Iaaf5d4a85113b4a01a4bd3986e2334972e1096ad
This commit is contained in:
Dianne Hackborn
2010-09-12 19:38:56 -07:00
parent dc42f58a69
commit 8fc1811242
5 changed files with 43 additions and 17 deletions

View File

@@ -29,7 +29,8 @@ import android.widget.Toast;
/**
* This demo illustrates the use of CHOICE_MODE_MULTIPLE_MODAL, a.k.a. selection mode on ListView
* couple with the new simple_selectable_list_item which uses a highligted border for selected items.
* couple with the new simple_list_item_activated_1 which uses a highlighted border for selected
* items.
*/
public class List16 extends ListActivity {
@Override
@@ -39,7 +40,7 @@ public class List16 extends ListActivity {
lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL);
lv.setMultiChoiceModeListener(new ModeCallback());
setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_selectable_list_item, mStrings));
android.R.layout.simple_list_item_activated_1, mStrings));
}
@Override