FileDocCategorySizeDatePackage
List1.javaAPI DocGoogle Android v1.5 Example13691Sun Nov 11 13:01:04 GMT 2007com.google.android.samples.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 icicle)

        super.onCreate(icicle);

        // 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));