Home | History | Annotate | Download | only in widget

Lines Matching defs:Spinner

54  * The items in the Spinner come from the {@link Adapter} associated with
57 * <p>See the <a href="{@docRoot}guide/topics/ui/controls/spinner.html">Spinners</a> guide.</p>
69 public class Spinner extends AbsSpinner implements OnClickListener {
70 private static final String TAG = "Spinner";
76 * Use a dialog window for selecting spinner options.
81 * Use a dropdown anchored to the Spinner for selecting spinner options.
108 * Constructs a new spinner with the given context's theme.
113 public Spinner(Context context) {
118 * Constructs a new spinner with the given context's theme and the supplied
125 * the spinner.
130 public Spinner(Context context, int mode) {
135 * Constructs a new spinner with the given context's theme and the supplied
142 public Spinner(Context context, AttributeSet attrs) {
147 * Constructs a new spinner with the given context's theme, the supplied
158 public Spinner(Context context, AttributeSet attrs, int defStyleAttr) {
163 * Constructs a new spinner with the given context's theme, the supplied
166 * user will select choices from the spinner.
175 * spinner.
180 public Spinner(Context context, AttributeSet attrs, int defStyleAttr, int mode) {
185 * Constructs a new spinner with the given context's theme, the supplied
188 * user will select choices from the spinner.
202 * the spinner.
207 public Spinner(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes,
213 * Constructs a new spinner with the given context, the supplied attribute
230 * the spinner.
240 public Spinner(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, int mode,
245 attrs, R.styleable.Spinner, defStyleAttr, defStyleRes);
273 attrs, R.styleable.Spinner, defStyleAttr, defStyleRes);
318 * @return the context used to inflate the Spinner's popup or dialog window
325 * Set the background drawable for the spinner's popup window of choices.
334 Log.e(TAG, "setPopupBackgroundDrawable: incompatible spinner mode; ignoring...");
341 * Set the background drawable for the spinner's popup window of choices.
353 * Get the background drawable for the spinner's popup window of choices.
373 * Set a vertical offset in pixels for the spinner's popup window of choices.
385 * Get the configured vertical offset in pixels for the spinner's popup window of choices.
397 * Set a horizontal offset in pixels for the spinner's popup window of choices.
409 * Get the configured horizontal offset in pixels for the spinner's popup window of choices.
421 * Set the width of the spinner's popup window of choices in pixels. This value
423 * to match the width of the Spinner itself, or
442 * Get the configured width of the spinner's popup window of choices in pixels.
444 * meaning the popup window will match the width of the Spinner itself, or
497 * this Spinner.
499 * If this Spinner has a popup theme set in XML via the
506 * Spinner overrides {@link Adapter#getViewTypeCount()} on the
537 throw new IllegalArgumentException("Spinner adapter view type count must be 1");
573 * <p>A spinner does not support item click events. Calling this method
581 throw new RuntimeException("setOnItemClickListener cannot be used with a spinner.");
627 * Creates and positions all views for this Spinner.
694 * @param position Position in the spinner for the view to obtain
695 * @param addChild true to add the child to the spinner, false to obtain and configure only.
725 * @param addChild true if the child should be added to the Spinner during setup
795 return Spinner.class.getName();
1053 * Implements some sort of popup selection interface for selecting a spinner option.
1054 * Allows for different spinner modes.
1181 setAnchorView(Spinner.this);
1186 Spinner.this.setSelection(position);
1188 Spinner.this.performItemClick(v, position, mAdapter.getItemId(position));
1220 final int spinnerPaddingLeft = Spinner.this.getPaddingLeft();
1221 final int spinnerPaddingRight = Spinner.this.getPaddingRight();
1222 final int spinnerWidth = Spinner.this.getWidth();
1259 setSelection(Spinner.this.getSelectedItemPosition());
1275 if (!Spinner.this.isVisibleToUser()) {