Thursday, 15 November 2012

How to Set Full Screen in Android mobile through programatically ?

By Two ways we can solve this

1.In Activity before setContentView() method write like this

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                        WindowManager.LayoutParams.FLAG_FULLSCREEN);
or

2.In androidmanifest.file we can add "theme" tag

<activity
            android:label="@string/app_name"
            android:name=".ListCustamizationActivity"
            android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >


Demo:
 

No comments:

Post a Comment