imported NumberPicker support from 1.x branch