• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Spinner on same selecting which event call

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi , This is Vijay ,
I am Android begginer .
I have problem of Spinner on same selecting value of the spinner which event gets called.
or when onNothingSelected methods gets called .
please help me
Thanks in advanced
 
Ranch Hand
Posts: 56
Android Mac Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you already read this page?
Place some Log.v("TAG","description"); in the callback method's and watch the logcat while using the spinner, this way you can see what is happening and when.
 
Vijay Nimkarde
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@ Misha van Tol thanks for reply
Yes , I have already read that link,
suppose there are 3 values in spinner 1.Mercury 2. Venus3.Earth
and there is already selected 3rd value and i have select 2nd OK then OnItemSelectedListener 's onItemSelected is gets called
but at that point when i click on spinner and again select the same value i.e 2nd then OnItemSelectedListener no mehtod gets called
then at this point i have to handle further event on same selection also.

 
Rancher
Posts: 1337
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vijay Nimkarde wrote:then at this point i have to handle further event on same selection also.


I'd reconsider a UI design like that. People do not expect something to happen if they click on a selection that is already active. You'd need to have very good reasons to break commonly accepted GUI behavior.
 
Vijay Nimkarde
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@ Lester Burnham
thanks for your reply.

I think you are right.
 
reply
    Bookmark Topic Watch Topic
  • New Topic