How to use fade in and fade out effect with an image using Transition, android
I have seen in Android mobile. When i click photo gallery, one image is opened (Fade in) and after I clicked disappeared (Fade out). Same, I have done in my app. I have pasted one image in Drawable. And applied Fade in and Fade out conditions. But I have not seen any images than sky blue color background. That is view. How could I do this programmatically in Android? In what way can I fix this problem? What mistake have I done here? My code is: btn=(Button)findViewById(R.id.Click); viewToAnimate=(View)findViewById(R.id.view1); btn.setOnClickListener(new View.OnClickListener() { @Override