Question

So I have problem in Android. Can't make my layouts fullscreen. I tried changing their themes but nothing happens when I run the app, but in layout preview, it's fullscreen. What to do?

Était-ce utile?

La solution 2

Themes can be set inside the styles.xml file directly. And Theme.Holo.Dark is what I guess you are looking for (perhaps you dont want your layout to be black or something :)). There are many more options available you can try. Infact you can even create your own custom theme. :)

Here's the google guide for the same. http://developer.android.com/guide/topics/ui/themes.html

Autres conseils

Did you try this in your Activity (in OnCreate) :

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

?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top