There is an application. I want to see, when starting, an inscription with inscriptions comes first with pictures, and then smoothly, within 2-3 seconds, the transition to my application disappears.

How can you implement? What are the ways.

Closed due to the fact that the issue is too general for participants user207618, Streletz , Vladyslav Matviienko , HamSter , cheops 20 Sep '16 at 6:27 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Well, show a separate Activity with pictures and inscriptions with inscriptions , and after a few seconds, launch another Activity. - Vladyslav Matviienko

1 answer 1

It is necessary to write SplashActivity , in it to implement "an inscription with inscriptions" and in OnCreate() call:

 new Handler().postDelayed(new Runnable() { @Override public void run() { Intent intent = new Intent(SplashActivity.this, MainActivity.class); startActivity(intent); finish(); overridePendingTransition(R.anim.mainfadein, R.anim.splashfadeout); } }, 3000); 

anim / mainfadein.xml

 <?xml version="1.0" encoding="utf-8"?> <alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="700" /> 

anim / splashfadeout.xml

 <?xml version="1.0" encoding="utf-8"?> <alpha xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/decelerate_interpolator" android:zAdjustment="top" android:fromAlpha="1.0" android:toAlpha="0.0" android:duration="700" />