Steps: 1. Create new project. 2. Now insert below code in SplashActivity /********************************************* SplashScreen.java ***********************************************/ public class SplashScreen extends Activity { private long ms = 0; private long splashDuration = 5000; private boolean splashActive = true; private boolean paused = false; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash_screen); AnimateScreen(); } private void AnimateScreen() { // TODO Auto-generated method stub Animation anim = AnimationUtils.loadAnimation(SplashScreen.this, R.anim.alpha); anim.reset(); RelativeLayout l=(RelativeLayout) findViewById(R.id.RelativeLayout1); l.clearAnimation(); l.startAnimation(anim); anim = AnimationUtils.loadAnimation(SplashScreen.this, R.anim.translate); anim.reset(); TextView life = (TextView) findViewById(R.id.textVi...
Android tutorials, Kotlin tutorials