How to pick a second using TimePicker, android

后端 未结 6 1162
长发绾君心
长发绾君心 2021-02-07 05:51

I have used TimePicker to make the user to choose time see here and here also. But I didnot find a way to make the user to select second also. Now user can select Hour and Minut

6条回答
  •  悲&欢浪女
    2021-02-07 06:01

    One quick and dirty way is to use two TimePickers, One for hours,minutes, and use the minutes on the other one as secunds. Hide the unused hours under the first minutes. This only works in 24 hour mode. Must declare timepicker for seconds first so locates under.

    
      
    
    

提交回复
热议问题