今天学习了kotlin中的点击时间
loginButton.setOnClickListener {//loginButton为botton名 val authSuccessful: Boolean = viewModel.authenticate( usernameEditText.text.toString(), passwordEditText.text.toString() ) if (authSuccessful) { // Navigate to next screen } else { statusTextView.text = requireContext().getString(R.string.auth_failed) } }
对于源文件,所有源文件编码格式必须为UTF—8
标签:04,text,30,源文件,toString,2023,loginButton,authSuccessful From: https://www.cnblogs.com/JJTyyds/p/17365789.html