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

Controls1

public class Controls1 extends android.app.Activity
A gallery of basic controls: Button, EditText, RadioButton, Checkbox, Spinner. This example uses the light theme.

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

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

        Spinner s1 = (Spinner) findViewById(R.id.spinner1);
        ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
                android.R.layout.simple_spinner_item, mStrings);
        adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        s1.setAdapter(adapter);