nano1254
nano1254

Reputation: 1

cordova inappbrowser full screen (android)

please, i'm trying to run my hybrid app with full screen under cordova 6 with inappbrowser but without success ..

var ref = window.open(myURL, "_blank", "location=no");

in config.xml

 <preference name="Fullscreen" value="true" />

and adding this to activity tag in AndroidManifest.xml

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

please help! thank you.

Upvotes: 0

Views: 2348

Answers (1)

Michal Rozumn&#253;
Michal Rozumn&#253;

Reputation: 71

Add

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

under this line in InAppBrowser.java: (line 571 in current version)

dialog = new InAppBrowserDialog(cordova.getActivity(), android.R.style.Theme_NoTitleBar);

Upvotes: 2

Related Questions