animation fade in and out
<p>Using this code I've only a fade in, I looking for about add also a fade out. I add another xml called "fadeout" but I can't integrate it in my code.</p>

<pre><code>ImageView imageView= (ImageView)findViewById(R.id.imageView);
Animation fadeInAnimation = AnimationUtils.loadAnimation(this, R.anim.fadein);
imageView.startAnimation(fadeInAnimation );

button1.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
imageView.startAnimation(fadeInAnimation);
</code></pre>

<p>xml</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;alpha android:fromAlpha="0.0" android:toAlpha="1.0" 
     android:interpolator="@android:anim/accelerate_interpolator" 
   android:duration="Your Duration(in milisecond)"
    android:repeatCount="infinite"/&gt;
 &lt;/set&gt;
</code></pre>
