krishnakeshan
krishnakeshan

Reputation: 1280

How to animate from splash screen to main screen on Android?

I followed the advice here to setup my splash screen to be defined as a drawable and set as the theme for the launching Activity. However as expected the transition is a bit abrupt. Could someone suggest a way to animate the transition?

Upvotes: 1

Views: 1119

Answers (2)

Mariusz Brona
Mariusz Brona

Reputation: 1609

The advice you've read is a very good way for creating splash screen, because we're avoiding blank screen on app initialization.

To create the activity/fragment transition I think there is no other way than creating a SplashActivity/SplashFragment and starting the transition after some delay or when necessary data is loaded.

However I haven't combined those two approaches together, so changing the theme and running the transition after. Maybe there is a way to combine those two, so we can end up with sweet spot, where we don't have blank screen on app start + we have transition.

Upvotes: 1

Related Questions