title: How to set dynamic images to ViewFlipper in android?
body: <p>I am doing like these it is loading static these image?</p>
  
  <pre><code>public class ArchiveGroup extends Activity  {
      Button btn;
      ViewFlipper flip;
      public void onCreate(Bundle savedInstanceState) {
                  super.onCreate(savedInstanceState);
                  setContentView(R.layout.next);
                  btn=(Button)findViewById(R.id.btn);
                  flip=(ViewFlipper)findViewById(R.id.flip);
  
          }
              public void ClickHandler(View v)
              {
               flip.showNext();
              }
              public void ClickHandler1(View v)
              {
              Toast.makeText(this,"text",Toast.LENGTH_LONG).show();
              }
  }
  </code></pre>
  
  <p>i am using three imageview in ViewFlipper in <code>xml</code> file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      &gt;
  &lt;TextView  
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="@string/hello"
      /&gt;
      &lt;Button
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="Flip"
      android:id="@+id/btn"
      android:onClick="ClickHandler"
      /&gt;
      &lt;ViewFlipper
      android:layout_width="fill_parent" 
      android:layout_height="fill_parent"
      android:id="@+id/flip"
      &gt;
      &lt;ImageView  
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:src="@drawable/ic_launcher"
      /&gt;
       &lt;ImageView  
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:src="@drawable/ic_launcher"
      /&gt;
      &lt;ImageView  
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:src="@drawable/ic_launcher"
      /&gt;
  
      &lt;/ViewFlipper&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>How to set dynamic images to these imageView. By using single ImageView.</p>