djtalez / android-binding

Automatically exported from code.google.com/p/android-binding
0 stars 0 forks source link

Change spinner's selected position from code doesn't work in 0.49 #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Changing selectedPosition's value in my ViewModel.

What is the expected output? What do you see instead?
In 0.45 version I see the spinner's selected value changed. In 0.49 it always 
shows the first position.

What version of the product are you using? On what operating system?
0.49, Windows 7

Please provide any additional information below.
Like I said, my code works in 0.45 version, but not in 0.49. I submit my 
layout, activity and viewmodel as Andy Tsui suggested in the group discussions.

Original issue reported on code.google.com by Palou...@gmail.com on 4 Jun 2012 at 8:44

Attachments:

GoogleCodeExporter commented 8 years ago
Have you try changing the selected position AFTER binding the view model to 
view? It's happening because whenever spinner is binded, it automatically "set" 
the position to 0. 

Original comment by gueei....@gmail.com on 21 Jun 2012 at 3:09

GoogleCodeExporter commented 8 years ago
Ok, that was the problem. Thanks!

Original comment by Palou...@gmail.com on 21 Jun 2012 at 7:44

GoogleCodeExporter commented 8 years ago

Original comment by gueei....@gmail.com on 29 Jun 2012 at 6:01