Home | History | Annotate | Download | only in spinner

Lines Matching defs:spinner

17 package com.android.example.spinner;
19 import com.android.example.spinner.R;
28 import android.widget.Spinner;
34 * Displays an Android spinner widget backed by data in an array. The
40 * Fields to contain the current position and display contents of the spinner
46 * ArrayAdapter connects the spinner widget to array-based data.
51 * The initial position of the spinner when it is first installed.
87 * 2) Reads the spinner's backing data from the string resources file
89 * spinner
107 Spinner spinner = (Spinner) findViewById(R.id.Spinner01);
110 * Create a backing mLocalAdapter for the Spinner from a list of the
118 * Attach the mLocalAdapter to the spinner.
121 spinner.setAdapter(this.mAdapter);
125 * user has selected an item in the Spinner.
131 * Attach the listener to the Spinner.
134 spinner.setOnItemSelectedListener(spinnerListener);
141 * Spinner is not set.
143 // spinner.setOnItemSelectedListener(null);
166 * @param c - The activity that displays the Spinner.
168 * controls the Spinner.
179 * When the user selects an item in the spinner, this method is invoked by the callback
180 * chain. Android calls the item selected listener for the spinner, which invokes the
214 * Restores the current state of the spinner (which item is selected, and the value
221 * state of the spinner to be the previous position.
242 * Set the spinner to the current state.
245 Spinner restoreSpinner = (Spinner)findViewById(R.id.Spinner01);
251 * Store the current state of the spinner (which item is selected, and the value of that item).
279 * Sets the initial state of the spinner when the application is first run.
288 * Read the previous state of the spinner from the preferences file
306 * Get the position and value of the spinner from the file, or a default value if the