Home
last modified time | relevance | path

Searched refs:mSpinner (Results 1 – 8 of 8) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/content/
DClipboardSample.java40 Spinner mSpinner; field in ClipboardSample
80 mSpinner = (Spinner) findViewById(R.id.clip_type); in onCreate()
84 mSpinner.setAdapter(adapter); in onCreate()
85 mSpinner.setOnItemSelectedListener( in onCreate()
148 mSpinner.setSelection(2); in updateClipData()
150 mSpinner.setSelection(1); in updateClipData()
152 mSpinner.setSelection(3); in updateClipData()
154 mSpinner.setSelection(4); in updateClipData()
156 mSpinner.setSelection(0); in updateClipData()
159 mSpinner.setSelection(0); in updateClipData()
[all …]
/development/samples/SpinnerTest/src/com/android/example/spinner/test/
DSpinnerActivityTest.java84 private Spinner mSpinner; field in SpinnerActivityTest
135 mSpinner = (Spinner)mActivity.findViewById(com.android.example.spinner.R.id.Spinner01); in setUp()
137 mPlanetData = mSpinner.getAdapter(); in setUp()
153 assertTrue(mSpinner.getOnItemSelectedListener() != null); in testPreconditions()
186 mSpinner.requestFocus(); in testSpinnerUI()
187 mSpinner.setSelection(INITIAL_POSITION); in testSpinnerUI()
209 mPos = mSpinner.getSelectedItemPosition(); in testSpinnerUI()
216 mSelection = (String)mSpinner.getItemAtPosition(mPos); in testSpinnerUI()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DMenuInflateFromXml.java62 private Spinner mSpinner; field in MenuInflateFromXml
86 mSpinner = new Spinner(this); in onCreate()
89 mSpinner.setId(R.id.spinner); in onCreate()
90 mSpinner.setAdapter(adapter); in onCreate()
91 mSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { in onCreate()
102 layout.addView(mSpinner, in onCreate()
130 inflater.inflate(sMenuExampleResources[mSpinner.getSelectedItemPosition()], menu); in onCreateOptionsMenu()
/development/samples/browseable/ActivityInstrumentation/src/com.example.android.activityinstrumentation/
DMainActivity.java58 private Spinner mSpinner; field in MainActivity
76 mSpinner = (Spinner) findViewById(R.id.spinner); in onCreate()
77 mSpinner.setAdapter( in onCreate()
87 mSpinner.setSelection(selection); in onCreate()
92 mSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { in onCreate()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiPortSelector.java41 private Spinner mSpinner; field in MidiPortSelector
65 mSpinner = (Spinner) activity.findViewById(spinnerId); in MidiPortSelector()
66 mSpinner.setOnItemSelectedListener( in MidiPortSelector()
80 mSpinner.setAdapter(mAdapter); in MidiPortSelector()
95 mSpinner.setSelection(0); in clearSelection()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiPortSelector.java41 private Spinner mSpinner; field in MidiPortSelector
65 mSpinner = (Spinner) activity.findViewById(spinnerId); in MidiPortSelector()
66 mSpinner.setOnItemSelectedListener( in MidiPortSelector()
80 mSpinner.setAdapter(mAdapter); in MidiPortSelector()
95 mSpinner.setSelection(0); in clearSelection()
/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/
DAppUsageStatisticsFragment.java58 Spinner mSpinner; field in AppUsageStatisticsFragment
99 mSpinner = (Spinner) rootView.findViewById(R.id.spinner_time_span); in onViewCreated()
102 mSpinner.setAdapter(spinnerAdapter); in onViewCreated()
103 mSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { in onViewCreated()
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/
DMainActivity.java88 private Spinner mSpinner; field in MainActivity
99 mSpinner = (Spinner) findViewById(R.id.spinner); in onCreate()
112 mSpinner.setAdapter(adapter); in onCreate()
113 mSpinner.setOnItemSelectedListener(this); in onCreate()