Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spinner on same selecting which event call

 
Vijay Nimkarde
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • 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
 
Misha van Tol
Ranch Hand
Posts: 56
Android Java Mac
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • 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.

 
Lester Burnham
Rancher
Posts: 1337
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
@ Lester Burnham
thanks for your reply.

I think you are right.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic