Questions tagged [numberpicker]

A Number Picker is a UI element that lets the user pick a numeric value.

NumberPickers define the input value to be numbers and optionally some other numeric characters, like . or -.

This definition is useful for input sanitation, and it allows mobile devices to show a numeric-only keyboard when the input field is edited.

Examples:

353 questions
5
votes
1 answer

NumberPicker is not showing in AlertDialog

I'm trying to add a NumberPicker to an AlertDialog, but it does not apper even though there seems to be no error. I'm pretty newbie at Android coding so I assume it's something really stupid that's missing there. AlertDialog.Builder alert =…
5
votes
2 answers

A NumberPicker inside a ViewPager kills the horizontal swipe

I have been working with a ViewPager for a long time and this morning, I have tried to include a NumberPicker inside the ViewPager. The big problem I facing is that when trying to swipe the viewpager, it works everywhere except over the…
Waza_Be
  • 39,545
  • 47
  • 176
  • 256
4
votes
1 answer

How do I get the value of setFormatter using numberPicker?

Im using a numberPicker and found the answer to display 00, 01, 02... in my numberPicker, i used setFormatter. The problem is that when i call getValue() i will get 0, 1, 2... I need to get 00, 01, 02... so that i can display it as text in a…
Allart
  • 364
  • 1
  • 15
4
votes
3 answers

How to reference the EditText inside a NumberPicker?

I need to get the reference to the EditText inside a NumberPicker. I know it's going to be some sort of findViewById on the picker view itself, but I haven't been able to find android's id for it: final NumberPicker numberPicker = (NumberPicker)…
Vin Norman
  • 1,848
  • 1
  • 12
  • 30
4
votes
0 answers

NumberPicker - array of String with 2 lines

I have a NumberPicker, where i want to return 2 lines instead of singleline. so far i have tried to use \n and created a custom style for NumberPicker. style.xml