public static interface TimePicker.Formatter
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.CharSequence |
format(TimePicker picker,
int type,
int position,
long value)
根据type和num格式化时间
|
java.lang.CharSequence format(TimePicker picker, int type, int position, long value)
picker - pickertype - 并不是模式,而是当前item所属的type,如年,时position - positionvalue - position item对应的value,如果是TYPE_MIXED_DATE表示日期时间戳,否则表示显示的数字