开发者

Android - TimePicker selecting the button and input field

I'm trying to modified the way TimePicker works as asked in my question here Android - TimePicker minutes to 15

To be able开发者_如何转开发 to do that I need to know if the + and - button was clicked and to disable the input field.

So can I target the elements in a TimePicker? (i.e the + and - button and the input field)?

Also is there anyway to determine if the + or the - button was clicked?

Thanks,

Tee


You can store the previous date in a variable and figure out on event, if that was increased or decreased. This way you detect if the plus or minus was used.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜