Animated splash screen

Hey,

I’m trying to create animated splash screen on Android (loading screen). With new project, it’s just
static image with Monogame logo.

<item name="android:windowBackground">@drawable/splash</item>

I can create drawable with animated-list instead:

<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
            android:oneshot="false">
  <item android:drawable="@drawable/logo2"
    android:duration="100" />
  <item android:drawable="@drawable/Move"
    android:duration="100" />
</animation-list>

but how to detect that I should stop animation ? I want to make it infinity, and when game’s view is visible I should stop it. Any callback when game is visible ?

Possibly.

https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.game.isactive.aspx

Unless you mean when you switch between the menu mode and your running game mode.
Then the solution is straight forward just simply dont update or draw the splash screen.

Probably it’s not this one

Indicates whether the game is currently the active application.

Any other ideas ?