Here is my Lottie animation code:
public class Splash extends AppCompatActivity {
ImageView logo,splashImg;
LottieAnimationView lottieAnimationView;
TextView textView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_splash);
logo = findViewById(R.id.logo);
splashImg = findViewById(R.id.img);
textView = findViewById(R.id.Motto);
lottieAnimationView = findViewById(R.id.lottie);
splashImg.animate().translationY(-2800).setDuration(1000).setStartDelay(4000);
logo.animate().translationY(1850).setDuration(1000).setStartDelay(4000);
textView.animate().translationY(1800).setDuration(1000).setStartDelay(4000);
lottieAnimationView.animate().translationY(1800).setDuration(1000).setStartDelay(4000);
}
}
And Now I want to go to another Activity, How do I do it??