Created
June 15, 2018 03:31
-
-
Save dingbuoyi/a0d1b3e77e6b75b64f4f6ff03b2b039c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var c = Calendar.getInstance() | |
c.timeInMillis = System.currentTimeMillis() | |
val hour = c.get(Calendar.HOUR_OF_DAY) | |
val minute = c.get(Calendar.MINUTE) | |
TimePickerDialog(context, TimePickerDialog.OnTimeSetListener { _, _, _ -> | |
}, hour, minute, true).show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment