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

AutoComplete6

public class AutoComplete6 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_6);

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