How to pick a second using TimePicker, android

后端 未结 6 1169
长发绾君心
长发绾君心 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:00

    The best way around this would be to create three separate 'number pickers' instead of timepicker... I placed them within a linear layout and its working fine.

    Then all you do is store the values inside three separate variables. int Hours, int Minutes, int Seconds and do your calculating.

    This was my way around it without downloading any external sources which may contain viruses.

    
    
                
    
                
    
                
    
                
    
                
    
                
    
            
    

提交回复
热议问题