FileDocCategorySizeDatePackage
List1.javaAPI DocAndroid 1.5 API13265Wed May 06 22:41:08 BST 2009com.example.android.apis.view

List1

public class List1 extends android.app.ListActivity
A list view example where the data for the list comes from an array of strings.

Fields Summary
private String[]
mStrings
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);

        // Use an existing ListAdapter that will map an array
        // of strings to TextViews
        setListAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, mStrings));
        getListView().setTextFilterEnabled(true);