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.
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.
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 .
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" /> Source: https://ru.stackoverflow.com/questions/568063/
All Articles