Search code examples
androidsplash-screen

Simple Android App consisting of two images


I'm really new to Android and for my first project, I want to create an app that when opened, displays a full screen jpg (similar to a splash screen) and then another full screen JPG (which will have an image of the app interface).

THis is just for practice.

How do I make full screen JPGs appear when the app is opened?


Solution

  • Try setting background image to the rootlayout in your xml files.

    android:background="@drawable\mySplash"
    

    Then add a timer in your java file for like 2 seconds and show another layout.