简体   繁体   English

如何修改TimePicker以使用分钟和秒而不是小时和分钟

[英]How can I modify TimePicker to use minutes and seconds instead hour and minutes

In my app, the user have to choose minutes and seconds through a TimePicker. 在我的应用程序中,用户必须通过TimePicker选择分钟和秒。

But this component configures hour and minutes by default. 但是该组件默认配置小时和分钟。 How can I modify it? 我该如何修改?

You will need to implement your own MinutesAndSecondsPicker . 您将需要实现自己的MinutesAndSecondsPicker TimePicker is exclusively tied to hours and minutes. TimePicker仅与小时和分钟相关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM