the newest method in Kotlin is this (not deprecated): after find your Image, use imageAlpha:value between 0 to 255
img=findViewById(R.id.img1) img.imageAlpha=125