CodyBugstein
CodyBugstein

Reputation: 23302

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?

Upvotes: 0

Views: 54

Answers (2)

Shabbir Dhangot
Shabbir Dhangot

Reputation: 9121

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                                    WindowManager.LayoutParams.FLAG_FULLSCREEN);

Use this two line before setcontentview

It will hide actionbar and status bar both.

Upvotes: 2

Illegal Argument
Illegal Argument

Reputation: 10338

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.

Upvotes: 1

Related Questions