10
I've created an application for Android, in which there is a NumberPicker. And I need to change the value of this NumberPicker but with a smooth animation like when you touch it and change its value.
For example, assume the current value is 1 and it's going to be 5, I want the NumberPicker to spin from 1 to 2 then to 3 and so on. But I want it to spin not just instantly change the values!
If I use the following code:
numberPicker.setValue(5);
its value will instantly change to 5, but I want it to roll up from 1 to 5 like when you manually touch it and make it spin.