阅读背景:

Android:如何从时间选择器输入时间

来源:互联网 

I've got a DialogPreference which implements a simple TimePicker.OnTimeChangedListener (see below). Setting the time by clicking the +/- buttons works great. But I don't know how to save the state of the timepicker when the user typed in the time directly into the textfield. It could be sufficient to access to the current textfield value, so I'd be able to persist it in onDialogClosed. But timePicker.getCurrentHour() won't do it. Please help...I've got a DialogPreference which implements a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: