Skip to content Skip to sidebar Skip to footer

How To Change Vertical Spacing In Android Numberpicker

The Android NumberPicker widget has a lot of space between the current item and the blue lines above and below it. Is there any way to change this spacing to be more compact, so th

Solution 1:

You can to customize the DatePicker using a Library. In example below has a class named "NumberPicker.java", that you can change the vertical spacing and other things.

https://github.com/rodrigobusata/android-pickers

I hope to have helped.

UPDATE

You mustn't use this library because this UI is deprecated. Now you must use Material Design DatePicker. To this, you can use this other lib. https://github.com/wdullaer/MaterialDateTimePicker

Post a Comment for "How To Change Vertical Spacing In Android Numberpicker"