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,
TeeYou 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.
精彩评论