滑动手势输入数字
如果(在 Android 中)您想编写一个闹钟应用程序,用户可以通过滑动小时和时间来输入闹钟时间。分钟上下,实现这一目标的最简单方法是什么?是 Swipe 命令还是 Fling 命令?
有这方面的好的教程吗?
干杯
If (in Android) you wanted to write an alarm app where the user entered in the time for the alarm by swiping the hours & minutes up and down, what's the easiest way of achieving this? Is it the Swipe or Fling command?
Are there any good tutorials out there for this?
Cheers
您看过 TimePickerDialog 吗?
教程\示例代码
Have you looked at the TimePickerDialog?
Tutorial\Sample Code