I’ve been programming in Android just for a week now, so my philosophy might be a bit rigged from other IDEs. I am used to Visual C#’s style of dealing with components – just drag it on the screen, then choose possible preferences in its menu. That however doesnt seem to work here.
My problem: I am trying to make a simple countdown clock, with the user choosing the time through the timePicker. But for that, I need a different style of it than the default. Rather than choosing the “real” possible time, I would like it to have just minutes and seconds, sorted incrementally, so the user can choose “48 min, 9 sec” and press ok. How is this possible?
Thanks
Well, the
TimePickeris meant for picking actual times… not quantities of time. So you can’t do so using theTimePickerprovided in the public SDK. You’ll have to make your own custom view instead.To do this, one thing you might consider trying is making your custom
ViewextendTimePicker. Perhaps you could then override the appropriate methods to reach the desired behavior. It will require a bit of sifting through the source code on your part, however. I’m not 100% sure if it is possible either, but it seems like it should.