FileDocCategorySizeDatePackage
ListInVertical.javaAPI DocAndroid 1.5 API1599Wed May 06 22:42:02 BST 2009com.android.frameworktest.listview

ListInVertical

public class ListInVertical extends android.app.Activity
Exercises a list in a vertical linear layout

Fields Summary
private android.widget.ListView
mListView
Constructors Summary
Methods Summary
public android.widget.ListViewgetListView()

        return mListView;
    
public voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);

        setContentView(R.layout.list_in_vertical);

        String values[] = new String[1000];
        for (int i = 0; i < 1000; i++) {
            values[i] = ((Integer) i).toString();
        }

        mListView = (ListView) findViewById(R.id.list);
        mListView.setAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, values));