📅  最后修改于: 2022-03-11 14:55:46.585000             🧑  作者: Mango
// for java version
numberPicker.setFormatter(new NumberPicker.Formatter() {
@Override
public String format(int i) {
return String.format("%02d", i);
}
});