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

List6

public class List6 extends android.app.ListActivity
A list view example where the data comes from a custom ListAdapter

Fields Summary
Constructors Summary
Methods Summary
public voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        
        // Use our own list adapter
        setListAdapter(new SpeechListAdapter(this));
    
protected voidonListItemClick(android.widget.ListView l, android.view.View v, int position, long id)

    
       ((SpeechListAdapter)getListAdapter()).toggle(position);