Re: [android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?
Have you tried setOnItemSelectedListener instead? 2011/11/20 David Karr davidmichaelk...@gmail.com I'm looking at the 3.2 API for android.widget.Spinner. The documentation for public void setOnItemClickListener (AdapterView.OnItemClickListener l) says this: A spinner does not support item click events. Calling this method will raise an exception. I'm also looking at the sample code from an Android book, which uses this method, and this works perfectly fine. What's up with this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?
I'm looking at the 3.2 API for android.widget.Spinner. The documentation for public void setOnItemClickListener (AdapterView.OnItemClickListener l) says this: A spinner does not support item click events. Calling this method will raise an exception. I'm also looking at the sample code from an Android book, which uses this method, and this works perfectly fine. What's up with this? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?
Oh, duh. That was actually the one I was using. I didn't notice the difference. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?
That comment about Calling this method will raise an exception only appears under Spinner.setOnItemClickListener. The setOnItemSelectedListener is inherited from AdapterView, there is no warning about it being unsupported, and it definitely works on 3.2. So I'm not clear as to which one you're actually using and having trouble with. -- Kostya 2011/11/20 David Karr davidmichaelk...@gmail.com Oh, duh. That was actually the one I was using. I didn't notice the difference. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?
When someone says Oh, duh, that's an idiom for I understand now. I was using Selected, but I read the advice on Click, and I didn't notice the difference in method names. I don't have an issue anymore. Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Is Spinner.setOnItemClickListener() supposed to work, or not?
2011/11/21 David Karr davidmichaelk...@gmail.com: When someone says Oh, duh, that's an idiom for I understand now. I know :) I was using Selected, but I read the advice on Click, and I didn't It just seemed like you maybe kept using the wrong one, despite the oh duh moment. Sorry if I misunderstood. notice the difference in method names. I don't have an issue anymore. Ok, great. Thanks. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en