Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Default value on initialize #24

Closed
alexgomes09 opened this issue Dec 15, 2016 · 2 comments
Closed

Set Default value on initialize #24

alexgomes09 opened this issue Dec 15, 2016 · 2 comments

Comments

@alexgomes09
Copy link

Enhancement:

I am trying to find a way to set default value.

use case :-
Current time is 3:06. When user go to specific screen, dev can take system time and feed that into numberpicker, so number picker would be set like 3:06 instead of showing the first element of the array.

@alexgomes09
Copy link
Author

Really sorry, I totally didn't see this helpful method setDisplayedValuesAndPickedIndex
This method helped what I needed.

@Carbs0126
Copy link
Owner

you can just use setValue() after setDisplayValues()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants