All, I'm customizing a city picker, which uses three numberPicker inside,like this:
Its a Chinese province-city-area picker.
The code:
String[] areas = get_from_somewhere();
areaPicker.setDisplayedValues(areas);
I want to reduce the font size,any advice?
Solution: Refer to this
Best Solution
You can extend the default
NumberPicker
in your Custom classCustomNumberPicker
for this:Now replace your current
NumberPicker
in xml withCustomNumberPicker
: