sajjoo
sajjoo

Reputation: 6614

webview with full screen in android

i have made a simple hello web view example and i want to make it in full screen like i do not want that two top most black bars. anybody have any idea how to do that?

thanks a lot.

Upvotes: 7

Views: 22225

Answers (2)

Yahel
Yahel

Reputation: 8550

Alternatively you can do it programmatically in the OnCreate method of your Activity :

//Full screen
requestWindowFeature(Window.FEATURE_NO_TITLE); 
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 

Upvotes: 8

CeejeeB
CeejeeB

Reputation: 3114

The quickest way to do this would be to add

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

Into your activity in the AndroidManifest.xml file

Upvotes: 14

Related Questions