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

AutoComplete1

public class AutoComplete1 extends android.app.Activity

Fields Summary
static final String[]
COUNTRIES
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        setContentView(R.layout.autocomplete_1);

        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                android.R.layout.simple_dropdown_item_1line, COUNTRIES);
        AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.edit);
        textView.setAdapter(adapter);