If you just want to make Spinner shorter, this is easy to fix.
As a rule, you can change the height and width of any kind, giving it weight, or setting its layout_width and layout_height:
<Spinner android:id="@+id/shortenedSpinner" android:layout_width="100dp" android:layout_height="50dp" />
This will make the counter shorter.
If you want the drop-down view to be shorter, this is different. In this case, I suppose you could provide a custom string in the getDropDownView () method of the spinner adapter, which has the same changes as above.
source share