android - Ionic2 native : Hide location bar in android

标签 android angular ionic-framework ionic2 inappbrowser

插件

ionic plugin add cordova-plugin-inappbrowser

应用程序模块.ts

const browser = this.iab.create('http://example.com','_blank','location = no,toolbar= no');

编辑了 Android.manifest.xml

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

编辑了 InAppBrowser.java

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

毕竟我仍然得到这个位置栏。 enter image description here

请大家帮我解决这个问题。谢谢!!

最佳答案

options 字符串不得包含任何空白 空格。因此您必须按如下所示编写它,不带空格。

'location=no,toolbar=no'

关于android - Ionic2 native : Hide location bar in android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43124639/

相关文章:

javascript - 如何在 Android Studio 的 WebView 中自动填充网站字段/表单?

angular - 如何将 three.js OrbitControls 限制到特定的 Angular2 组件或 Div

ionic-framework - ionic : GoogleAnalytics plugin Error: ts: Cannot find name 'GoogleAnalytics'

css - 自动展开所有 PrimeNG Accordion 面板以进行打印

javascript - Angular:如何为图像创建自定义管道?

cordova - 使用 CouchDB/PouchDB 时的应用程序架构

angular - ionic Angular 平移不起作用

android - 使 Sliding TabLayout 中的标签不滑动

android - 为什么在关闭从 fragment 启动的 DialogFragment 后从未触发 fragment 的 onResume 方法?

java - 无法将 java.lang.String 类型的值转换为 int