Java – How to change the size of the number picker Android

How to change the size of the number picker Android… here is a solution to the problem.

How to change the size of the number picker Android

I’m trying to reduce the size of the Android number picker, but have tried several things but I can’t. I didn’t find a responsible property size change.
You want to do the following:

enter image description here

It has to be reduced because I have to put the number selector on the screen with a lot of information.
Any help would be appreciated.

Solution

I’m having a similar issue, I want to increase the text size of NumberPicker, but can’t find a way to make it part of the widget. In my research, I found the following solution:

<NumberPicker
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:scaleX="0.75"
    android:scaleY="0.75"/>

Think of scaleX and scaleY as amplification factors. A value of < 1 will shrink the widget, 1 will not change, and > 1 will increase its size.

Related Problems and Solutions