Kotlin 60秒后停止录音
我在kotlin最多60秒内尝试一个记录
object : CountDownTimer(60000,1000) { override fun onFinish(){ timeText.text = "Time's Fİnish!" handler.removeCallbacks(runnbale) for (button2 in runnable ){ button2.stop() } } }
我得到对象和可运行的错误
Error:(70, 13) Object is not abstract and does not implement abstract base class member public abstract fun onTick(p0: Long): Unit defined in android.os.CountDownTimer Error:(75, 37) Unresolved reference: runnable
- Java / Android / Kotlin:关于私人领域的反思和调用公共方法
- 我可以调用API级别19中的Bundle#putString方法吗?
- Kotlin文件不能使用R.java
- 安子的主题和风格
- lateinitVar无法解析使用从Kotlin 1.2.10 isInitialized
- IllegalStateException textview不能在Kotlin中为null
- Kotlin中的OnclickListener方法之间的区别
- 带有产品风味和Kotlin的ClassNotFoundException
- Kotlin和Android TextWatcher具有CharSequence / String替换function