/cts/tests/tests/widget/src/android/widget/cts/ |
SpinnerTest.java | 34 import android.widget.Spinner; 37 * Test {@link Spinner}. 39 @TestTargetClass(Spinner.class) 56 method = "Spinner", 61 method = "Spinner", 66 method = "Spinner", 71 new Spinner(mTargetContext); 73 new Spinner(mTargetContext, null); 75 new Spinner(mTargetContext, null, com.android.internal.R.attr.spinnerStyle); 77 Spinner spinner = (Spinner) getActivity().findViewById(R.id.spinner1) local 88 Spinner spinner = new Spinner(mTargetContext); local 108 Spinner spinner = new Spinner(mTargetContext); local 124 final Spinner spinner = (Spinner) getActivity().findViewById(R.id.spinner1); local 138 Spinner spinner = new Spinner(mTargetContext); local 178 Spinner spinner = new Spinner(mTargetContext); local 197 Spinner spinner = new Spinner(mTargetContext); local [all...] |
/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);
|
/frameworks/base/docs/html/resources/tutorials/views/ |
hello-spinner.jd | 1 page.title=Spinner 6 <p>{@link android.widget.Spinner} is a widget similar to a drop-down list for selecting items.</p> 9 a simple spinner widget that displays a list of planets. When one is selected, a toast message 28 <Spinner 29 android:id="@+id/spinner" 37 {@link android.widget.Spinner}'s <code>android:prompt</code> attribute both reference the same 39 android.widget.Spinner}, the title text will appear 62 android.widget.TextView} and {@link android.widget.Spinner} in the layout above. The {@code 64 the {@link android.widget.Spinner} widget.</p> 75 Spinner spinner = (Spinner) findViewById(R.id.spinner) [all...] |
/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...] |
/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...] |
/development/apps/SpareParts/res/layout/ |
spare_parts.xml | 28 <Spinner android:id="@+id/window_animation_scale" 32 </Spinner> 34 <Spinner android:id="@+id/transition_animation_scale" 39 </Spinner>
|
/development/samples/Spinner/res/layout/ |
main.xml | 18 Creates a Linear Layout View to contain the spinner 27 Creates a spinner widget called Spinner01, within the Linear Layout 30 <Spinner 36 </Spinner> 39 Creates a TextView called SpinnerResult, below the spinner.
|
/frameworks/base/docs/html/guide/topics/ui/ |
binding.jd | 16 <li><a href="{@docRoot}resources/tutorials/views/hello-spinner.html">Hello Spinner tutorial</a></li> 26 <p>{@link android.widget.Gallery Gallery}, {@link android.widget.ListView ListView}, and {@link android.widget.Spinner Spinner} are examples of AdapterView subclasses that you can use to bind to a specific type of data and display it in a certain way. </p> 44 <li>Creates a {@link android.widget.Spinner Spinner} with an existing View and binds it to a new ArrayAdapter 46 <li>Creates another Spinner object from a View and binds it to a new SimpleCursorAdapter that will read 51 // Get a Spinner and bind it to an ArrayAdapter that 53 Spinner s1 = (Spinner) findViewById(R.id.spinner1) [all...] |
/frameworks/base/docs/html/guide/tutorials/views/ |
hello-spinner.jd | 1 page.title=Hello, Spinner 6 <p>A {@link android.widget.Spinner} is a widget that allows the user to select an item from a group. 30 <Spinner 31 android:id="@+id/spinner" 40 <p>Notice that the Spinner's <code>android:prompt</code> is a string resource. In 69 <p>This is the list of items (planets) that the user can select from in the Spinner widget.</p> 79 Spinner s = (Spinner) findViewById(R.id.spinner); 86 <p>That's it. We start by creating a Spinner from our layout. We then create an {@link android.widget.ArrayAdapter} [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
Controls1.java | 25 import android.widget.Spinner; 31 * Spinner. This example uses the light theme. 40 Spinner s1 = (Spinner) findViewById(R.id.spinner1);
|
Controls2.java | 25 import android.widget.Spinner; 31 * Spinner. This example uses the default theme. 40 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);
|
/frameworks/base/core/java/android/widget/ |
SpinnerAdapter.java | 24 * {@link android.widget.Spinner} and its data. A spinner adapter allows to 25 * define two different views: one that shows the data in the spinner itself and 26 * one that shows the data in the drop down list when the spinner is pressed.</p>
|
/development/apps/Development/src/com/android/development/ |
DevelopmentSettings.java | 40 import android.widget.Spinner; 55 private Spinner mPointerLocationSpinner; 64 private Spinner mMaxProcsSpinner; 65 private Spinner mWindowAnimationScaleSpinner; 66 private Spinner mTransitionAnimationScaleSpinner; 67 private Spinner mFontHintingSpinner; 99 mPointerLocationSpinner = (Spinner)findViewById(R.id.pointer_location); 126 mMaxProcsSpinner = (Spinner)findViewById(R.id.max_procs); 145 mFontHintingSpinner = (Spinner)findViewById(R.id.font_hinting); 160 Spinner setupAnimationSpinner(int resid 162 Spinner spinner = (Spinner)findViewById(resid); local 491 Spinner spinner; field in class:DevelopmentSettings.AnimationScaleSelectedListener [all...] |
/development/samples/SpinnerTest/ |
AndroidManifest.xml | 26 package="com.android.example.spinner.test" 39 the package of com.android.example.spinner. To run the tests use the command: 41 com.android.example.spinner.test/android.test.InstrumentationTestRunner" 44 android:targetPackage="com.android.example.spinner" 45 android:label="Tests for com.android.example.spinner"/>
|
_index.html | 4 Testing</a> tutorial. It tests the <a href="../Spinner/index.html">Spinner</a> example 19 test case class, <a href="src/com/android/example/spinner/test/SpinnerActivityTest.html"><code>SpinnerActivityTest</code></a>, 46 <code>com.android.example.spinner</code> as the name of the Android package that contains the 49 <img alt="The initial user interface for the Spinner sample application" style="height:230px;"
|
/development/apps/Development/res/layout/ |
development_settings.xml | 57 <Spinner android:id="@+id/pointer_location" 84 <Spinner android:id="@+id/max_procs" 131 <Spinner android:id="@+id/window_animation_scale" 136 </Spinner> 138 <Spinner android:id="@+id/transition_animation_scale" 143 </Spinner> 145 <Spinner android:id="@+id/font_hinting" 150 </Spinner>
|
/development/samples/ApiDemos/res/layout/ |
animation_3.xml | 38 <Spinner 39 android:id="@+id/spinner"
|
spinner_1.xml | 29 <Spinner android:id="@+id/spinner1" 43 <Spinner android:id="@+id/spinner2"
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
MenuInflateFromXml.java | 28 import android.widget.Spinner; 35 * the spinner, and then hit the menu button. To choose another, back out of the 60 private Spinner mSpinner; 80 // Create the spinner to allow the user to choose a menu XML 84 mSpinner = new Spinner(this); 87 mSpinner.setId(R.id.spinner); 90 // Add the spinner 121 // Disable the spinner since we've already created the menu and the user
|
/development/samples/Spinner/res/values/ |
strings.xml | 20 this array into the spinner's array adapter. 24 <string name="app_name">Spinner</string>
|
/packages/apps/Settings/res/layout/ |
display.xml | 30 <Spinner android:id="@+id/fontSize" 33 </Spinner>
|
/frameworks/base/docs/html/resources/tutorials/testing/ |
activity_test.jd | 138 want to learn more about Spinner, the application under test, then you might want to visit the 139 <a href="{@docRoot}resources/tutorials/views/hello-spinner.html">Hello Views > Spinner</a> example. 177 Spinner is the application under test. This tutorial focuses on the 246 click the large downward-pointing arrow to the right of the spinner text. You see the spinner expand and display the title "Select a planet" at the top. 247 Click one of the other planets. The spinner closes, and your selection appears below it on the screen. 252 both Spinner (the application under test) and SpinnerTest (the test application). 255 You'll be using the Spinner application as-is, without modification, so you'll be loading it 257 creating a new test project associated with Spinner that will contain the SpinnerTes [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;
|