简体   繁体   中英

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.

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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM