Thursday, July 21, 2011

Re: [android-developers] Spinner value on button click

On Wed, Jul 20, 2011 at 2:52 PM, Igor Barros <igorsmagasz@gmail.com> wrote:
Is it possible to return a spinner selected value only when I click in a button in the same activity, instead of using the OnItemSelected() method?

Yes.
 
Could you tell me how to proceed with it?

Read the docs for both Spinner and Button. There are functions to do exactly what you describe.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment