开发者

Android - TimePicker selecting the button and input field

开发者 https://www.devze.com 2022-12-26 06:59 出处:网络
I\'m trying to modified the way TimePicker works as asked in my question here Android - TimePicker minutes to 15

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

精彩评论

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