Android NumberPicker with Formatter doesn't format on first rendering

前端 未结 9 1842

I have a NumberPicker that has a formatter that formats the displayed numbers either when the NumberPicker spins or when a value is entered manually. This works fine, but wh

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 09:36

    I managed to fix it by calling

    picker.invalidate();
    

    just after setting the formatter.

提交回复
热议问题