में गतिशील फ़्लिपिंग स्क्रीन (आईफोन की तरह) कैसे बना सकता हूं मैं वेब सेवा के माध्यम से डेटा पार्स कर रहा हूं। मैं लंबवत के बजाय क्षैतिज flipping करना चाहता हूँ। यहां एक ट्यूटोरियल है जहां व्यूफ्लिपर का उपयोग किया जाता है लेकिन यह स्थिर डेटा के लिए है।मैं एंड्रॉइड
Splash.java
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();
}
}
Splash.xml
<?xml version="1.0" encoding="utf-8"?>
<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">
</AbsoluteLayout>
Menu.java
public class Menu extends Activity{
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.menu);
}
}
:
यहाँ हमारे कोड जहाँ हम 2 गतिविधियों के बीच flipping की जरूरत है
Menu.xml
<?xml version="1.0" encoding="utf-8"?>
<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">
</AbsoluteLayout>
आपका क्या मतलब है "यहाँ एक ट्यूटोरियल जहां ViewFlipper प्रयोग किया जाता है": एक ट्यूटोरियल, ताकि आप अपनी गतिविधि के दशक में चेतन कर सकते हैं और बाहर,
का आनंद लें लिखा? –
यह जांचें [उत्तर] (http://stackoverflow.com/questions/2651360/how-to-provide-animation-when-calling-another-activity-in-android/2651890#2651890) – Praveen