【发布时间】:2019-07-23 09:05:53
【问题描述】:
实际上我是 Kotlin 的新手,一直在做一个项目,严重卡在这个问题上,在发布这个问题之前已经查看了其他几篇文章和帖子,但没有一个变得有帮助。
Here's the actual shot from the Android Studio
这段代码有什么问题?
还有,它说...
onException overrides nothing.
onResourceReady overrides nothing.
Glide.with(this@SetupUserActivity).load(storedPhotoUrl)
.listener(object : RequestListener<String, Drawable> {
override fun onException(e: Exception?, model: String?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean {
progress_bar_setup_user_img.visibility = View.GONE
return false; }
override fun onResourceReady(resource: Drawable?, model: String?, target: Target<Drawable>?, isFromMemoryCache: Boolean, isFirstResource: Boolean): Boolean {
progress_bar_setup_user_img.visibility = View.GONE
return false
}
}).into(user_img_setup)
}
} catch (e: Exception) {
e.printStackTrace()
}
【问题讨论】: