Home computickets How to make a smooth transition between ACTIVITY?

How to make a smooth transition between ACTIVITY?

Author

Date

Category

How to make smooth, more spectacular transitions from one Activity to another?


Answer 1, Authority 100%

Determine the animation of the transition. For example, so:

res / Anim / Slidein.xml

& lt; xml version = "1.0" encoding = "UTF-8"? & gt;
& lt; Translate XMLNS: Android = "http://schemas.android.com/apk/res/android"
    Android: FROMYDELTA = "100% P" Android: Toydelta = "0% p"
    Android: Duration = "@ Android: Integer / Config_longanimtime" / & gt;

res / anim / slideout.xml

& lt; xml version = "1.0" encoding = "UTF-8"? & gt;
& lt; Translate XMLNS: Android = "http://schemas.android.com/apk/res/android"
    Android: FROMYDELTA = "0% P" Android: ToyDelta = "- 100% P"
    Android: Duration = "@ Android: Integer / Config_longanimtime" / & gt;

sometimeActivity.java

incent Intens = New Intent (this, oatherActivity.class);
StartActivity (Intent);
OverridependingTransition (r.anim.slidein, R.anim.Slideout);
Previous articlescroll sheet in unity
Next articleCopy ArrayList

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions