skip to Main Content

Android Studio – Hello everyone, I created an splash screen using Lottie animation and my problem is after the animation is completed, How do i change activity?

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);…

VIEW QUESTION

Android Studio – I am having error with line const MyHomePage({Key? key, this.title}) : super(key: key);

import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp` title: 'Hello World Demo Application', theme: ThemeData( primarySwatch: Colors.blue, ), home: MyHomePage(title: 'Home…

VIEW QUESTION
Back To Top
Search