HomeSort by relevance Sort by last modified time
    Searched refs:Spinner (Results 1 - 25 of 116) sorted by null

1 2 3 4 5

  /cts/tests/tests/widget/src/android/widget/cts/
SpinnerTest.java 29 import android.widget.Spinner;
32 * Test {@link Spinner}.
48 new Spinner(mTargetContext);
50 new Spinner(mTargetContext, null);
52 new Spinner(mTargetContext, null, com.android.internal.R.attr.spinnerStyle);
54 Spinner spinner = (Spinner) getActivity().findViewById(R.id.spinner1); local
55 assertEquals(mTargetContext.getString(R.string.text_view_hello), spinner.getPrompt());
60 Spinner spinner = new Spinner(mTargetContext) local
73 Spinner spinner = new Spinner(mTargetContext); local
84 final Spinner spinner = (Spinner) getActivity().findViewById(R.id.spinner1); local
93 Spinner spinner = new Spinner(mTargetContext); local
121 Spinner spinner = new Spinner(mTargetContext); local
133 Spinner spinner = new Spinner(mTargetContext); local
    [all...]
  /developers/build/prebuilts/gradle/ActivityInstrumentation/ActivityInstrumentationSample/tests/src/com/example/android/activityinstrumentation/
SampleTests.java 21 import android.widget.Spinner;
49 * Test to make sure that spinner values are persisted across activity restarts.
51 * <p>Launches the main activity, sets a spinner value, closes the activity, then relaunches
52 * that activity. Checks to make sure that the spinner values match what we set them to.
65 // Set spinner to test position 1
66 final Spinner spinner1 = (Spinner) activity.findViewById(R.id.spinner);
91 // Verify that the spinner was saved at position 1
92 final Spinner spinner2 = (Spinner) activity.findViewById(R.id.spinner)
    [all...]
  /developers/samples/android/testing/ActivityInstrumentation/ActivityInstrumentationSample/tests/src/com/example/android/activityinstrumentation/
SampleTests.java 21 import android.widget.Spinner;
49 * Test to make sure that spinner values are persisted across activity restarts.
51 * <p>Launches the main activity, sets a spinner value, closes the activity, then relaunches
52 * that activity. Checks to make sure that the spinner values match what we set them to.
65 // Set spinner to test position 1
66 final Spinner spinner1 = (Spinner) activity.findViewById(R.id.spinner);
91 // Verify that the spinner was saved at position 1
92 final Spinner spinner2 = (Spinner) activity.findViewById(R.id.spinner)
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
SpinnerTest.java 4 import android.widget.Spinner;
16 private Spinner spinner; field in class:SpinnerTest
20 spinner = new Spinner(new Activity());
25 spinner.setPrompt("foo");
27 assertThat(spinner.getPrompt().toString(), is("foo"));
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowSpinner.java 3 import android.widget.Spinner;
8 @Implements(Spinner.class)
  /development/samples/ApiDemos/src/com/example/android/apis/view/
Controls1.java 27 import android.widget.Spinner;
32 * Spinner. This example uses the light theme.
44 Spinner s1 = (Spinner) findViewById(R.id.spinner1);
Spinner1.java 28 import android.widget.Spinner;
44 Spinner s1 = (Spinner) findViewById(R.id.spinner1);
61 Spinner s2 = (Spinner) findViewById(R.id.spinner2);
Animation2.java 29 import android.widget.Spinner;
44 Spinner s = (Spinner) findViewById(R.id.spinner);
Animation3.java 31 import android.widget.Spinner;
45 Spinner s = (Spinner) findViewById(R.id.spinner);
  /packages/apps/Contacts/src/com/android/contacts/widget/
NotifyingSpinner.java 21 import android.widget.Spinner;
24 * Spinner that notifies a listener when the user taps on an item, whether or not this results
27 public class NotifyingSpinner extends Spinner {
  /packages/apps/Email/src/com/android/email/activity/setup/
SpinnerOption.java 19 import android.widget.Spinner;
26 public static void setSpinnerOptionValue(Spinner spinner, Object value) {
27 for (int i = 0, count = spinner.getCount(); i < count; i++) {
28 SpinnerOption so = (SpinnerOption)spinner.getItemAtPosition(i);
30 spinner.setSelection(i, true);
  /packages/apps/VideoEditor/src/com/android/videoeditor/
ExportOptionsDialog.java 28 import android.widget.Spinner;
79 final Spinner sizeSpinner = (Spinner)myView.findViewById(
83 final Spinner qualitySpinner = (Spinner)myView.findViewById(
110 // Setup the movie size spinner
119 final Spinner sizeSpinner = (Spinner)view.findViewById(R.id.export_option_size);
123 // Setup the movie quality spinner
130 final Spinner qualitySpinner = (Spinner)view.findViewById(R.id.export_option_quality)
    [all...]
  /developers/build/prebuilts/gradle/ActivityInstrumentation/ActivityInstrumentationSample/src/main/java/com/example/android/activityinstrumentation/
MainActivity.java 26 import android.widget.Spinner;
32 * Basic activity with a spinner. The spinner should persist its position to disk every time a
37 /** Shared preferences key: Holds spinner position. Must not be negative. */
41 /** Values for display in spinner. */
57 /** Handle to the spinner in this Activity's layout. */
58 private Spinner mSpinner;
75 // Populate spinner with sample values from an array
76 mSpinner = (Spinner) findViewById(R.id.spinner);
    [all...]
  /developers/samples/android/testing/ActivityInstrumentation/ActivityInstrumentationSample/src/main/java/com/example/android/activityinstrumentation/
MainActivity.java 26 import android.widget.Spinner;
32 * Basic activity with a spinner. The spinner should persist its position to disk every time a
37 /** Shared preferences key: Holds spinner position. Must not be negative. */
41 /** Values for display in spinner. */
57 /** Handle to the spinner in this Activity's layout. */
58 private Spinner mSpinner;
75 // Populate spinner with sample values from an array
76 mSpinner = (Spinner) findViewById(R.id.spinner);
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
SoftInputModes.java 14 import android.widget.Spinner;
22 Spinner mResizeMode;
49 mResizeMode = (Spinner)findViewById(R.id.resize_mode);
ScreenOrientation.java 28 import android.widget.Spinner;
32 Spinner mOrientation;
34 // Orientation spinner choices
60 mOrientation = (Spinner)findViewById(R.id.orientation);
  /development/samples/browseable/ActivityInstrumentation/src/com.example.android.activityinstrumentation/
MainActivity.java 26 import android.widget.Spinner;
32 * Basic activity with a spinner. The spinner should persist its position to disk every time a
37 /** Shared preferences key: Holds spinner position. Must not be negative. */
41 /** Values for display in spinner. */
57 /** Handle to the spinner in this Activity's layout. */
58 private Spinner mSpinner;
75 // Populate spinner with sample values from an array
76 mSpinner = (Spinner) findViewById(R.id.spinner);
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/
PopupWindowVisibility.java 26 import android.widget.Spinner;
54 Spinner spinner = (Spinner) findViewById(R.id.spinner); local
58 spinner.setAdapter(spinnerAdapter);
  /packages/apps/Calendar/src/com/android/calendar/event/
EventViewUtils.java 31 import android.widget.Spinner;
71 * @param values the list of minutes corresponding to the spinner choices
93 * @param values the list of minutes corresponding to the spinner choices
122 Spinner minuteSpinner = (Spinner) layout.findViewById(R.id.reminder_minutes_value);
123 Spinner methodSpinner = (Spinner) layout.findViewById(R.id.reminder_method_value);
201 * Set the list of labels on a reminder spinner.
203 private static void setReminderSpinnerLabels(Activity activity, Spinner spinner,
248 Spinner spinner = (Spinner) reminderItem.findViewById(R.id.reminder_minutes_value); local
    [all...]
  /packages/apps/Browser/src/com/android/browser/addbookmark/
FolderSpinner.java 23 import android.widget.Spinner;
26 * Special Spinner class with its own callback for when the selection is set, which
29 public class FolderSpinner extends Spinner
  /development/samples/Spinner/src/com/android/example/spinner/
SpinnerActivity.java 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) local
    [all...]
  /packages/apps/Settings/src/com/android/settings/
Display.java 31 import android.widget.Spinner;
42 mFontSize = (Spinner) findViewById(R.id.fontSize);
114 private Spinner.OnItemSelectedListener mFontSizeChanged
115 = new Spinner.OnItemSelectedListener() {
133 private Spinner mFontSize;
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/
TranslateLanguagePanel.java 18 import android.widget.Spinner;
36 private Spinner mSourceSpinner;
37 private Spinner mTargetSpinner;
100 // Determine how wide each spinner needs to be to avoid truncating its children.
107 mSourceSpinner = new Spinner(context);
108 mTargetSpinner = new Spinner(context);
152 Spinner spinner = (Spinner) adapter; local
153 int newId = ((SpinnerLanguageElement) spinner.getSelectedItem()).getLanguageId()
    [all...]
  /development/samples/SpinnerTest/src/com/android/example/spinner/test/
SpinnerActivityTest.java 17 package com.android.example.spinner.test;
19 import com.android.example.spinner.SpinnerActivity;
25 import android.widget.Spinner;
30 * Tests the example application Spinner. Uses the instrumentation test class
41 // Number of items in the spinner's backing mLocalAdapter
49 // Set the initial position of the spinner to zero
71 // String displayed in the spinner in the app under test
75 // The currently selected position in the spinner in the app under test
80 * The Spinner object in the app under test. Used with instrumentation to control the
84 private Spinner mSpinner
    [all...]
  /sdk/apps/NotificationStudio/src/com/android/notificationstudio/editor/
DropDownEditor.java 25 import android.widget.Spinner;
35 final Spinner dropDownEditor = (Spinner) v.findViewById(R.id.drop_down_editor);

Completed in 404 milliseconds

1 2 3 4 5