I am using the method answered in this thread I implemented the dependencies into build.gradle
but when I paste the code it shows me errors that I don't have class name Glide
. How do I work around this so I can make my ImageView
blur?
I have simple code for learning purposes
imageView4.setOnClickListener {
if (!haveImage) {
Toast.makeText(this, "Image not imported yet!", Toast.LENGTH_LONG).show()
} else {
val imgUri = Uri.parse("android.resource://com.example.myapplication/" + R.drawable.ic_launcher)
imageView4.setImageURI(imgUri)
}
}