Reputation: 121
I am able to create a fullscreen app with a simple linear layout, by settings the following properties.
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
Now if I add a EditText to the same linear layout (at the top), the app doesn't go to full screen mode anymore (The status bar is hidden though).
Am I doing anything wrong, or is it a bug in android ?
Upvotes: 2
Views: 2605
Reputation: 104168
It will be better to make your application work in full screen by adding the following attribute:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
in all the activities you declare in the AndroidManifest.xml
Upvotes: 3