Ecodor
Senior Member
- Nov 5, 2017
- 896
- 232
I cannot manage to make the image blurred after i click the image, is there someone who can help me do this. I am new in android about 4 - 5 days... Here is the code
Code:
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)
}
}