title: How can i make a dynamic flipping screen(like that of iPhone) in Android
body: <p>I am parsing data through the web service. I want the flipping horizontally rather than vertically. Here is a tutorial where ViewFlipper is used but it is for static data.</p>
  
  <hr>
  
  <p>Here is our code where we need flipping between 2 activities:    </p>
  
  <p>Splash.java</p>
  
  <pre><code>public class Splash extends Activity{
  
          /** Called when the activity is first created. */
  
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
  
              setContentView(R.layout.main);
  
                      startActivity(new Intent(Splash.this, MainMenu.class));
                      Splash.this.finish();                                     
          }
      }
  </code></pre>
  
  <p>Splash.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/splash"&gt;
  &lt;/AbsoluteLayout&gt;
  </code></pre>
  
  <p>Menu.java</p>
  
  <pre><code>public class Menu extends Activity{
  
          /** Called when the activity is first created. */
  
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);               
              setContentView(R.layout.menu);                                       
          }
      }
  </code></pre>
  
  <p>Menu.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/menu"&gt;
  &lt;/AbsoluteLayout&gt;
  </code></pre>