FileDocCategorySizeDatePackage
AutoCompleteTextViewActivityLandscape.javaAPI DocAndroid 1.5 API4766Wed May 06 22:42:02 BST 2009com.android.imftest.samples

AutoCompleteTextViewActivityLandscape

public class AutoCompleteTextViewActivityLandscape extends android.app.Activity

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

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

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