How to Disable Image like Iphone in ANDROID?
i want to disable view of开发者_开发技巧 image in my app.(like iphone). when my activity is launch i show one Image in Imageview then if i click on image i want to make it disable it. disable in the sense it will become more transparent.
Thanks....
onClicking the ImageView
myImageView.getDrawable().mutate().setAlpha(70);
myImageView.invalidate();
this will make the image somewhat transparent. Lesser the value in setAlpha()
, the more transparent the image will become.
精彩评论