我想选择用户是否在TimePicker View
中选择了上午或下午。这是我的onTimeSet
方法,我不知道应该用什么代替'? '
public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
c.set(Calendar.HOUR_OF_DAY, hourOfDay);
c.set(Calendar.MINUTE, minute);
c.set(Calendar.AM_PM, ?);
}