Fade In/ Fade Out ImageView Android

ImageView မွ မဟုတ္ပါဘူး ... ၾကိဳက္တဲ့ Object ကုိ Fade လုပ္လုိ ့ရပါတယ္ ...
......................
ဒီမွာေတာ့ Imageview တစ္ခုယူျပီးေတာ့ logo ပုံေလးထည့္ထားတာပါ ...
...








Fade In Button onClick() မွာ
AlphaAnimation anim = new AlphaAnimation(0.0f, 1.0f);
anim.setDuration(1000);
ImageView1.startAnimation(anim);

Fade Out Button onClick() မွာ
AlphaAnimation anim = new AlphaAnimation(1.0f, 0.0f);
anim.setDuration(1000);
ImageView1.startAnimation(anim);

ဆုိျပီးထည့္လုိက္ရုံပါပဲ ...
AlphaAnimation anim = new AlphaAnimation(1.0f, 0.0f); အေၾကာင္းက ကြင္းထဲကတန္ဖုိးက Fade In လား Out လား ခြဲျခားေပးပါတယ္ ...
anim.setDuration(1000); မွာကေတာ့ 1000 ဆုိတာ 1 စကၠန္ ့ကုိေျပာတာပါ ... ၾကိဳက္သလုိေျပာင္းလဲႏုိင္ပါတယ္ ... ဥပမာ ၅ စကၠန္ ့လုိခ်င္ရင္ 5000 ေျပာင္းေပါ့ ...

Download Code Attachment