Cordova InAppBrowser - How to disable URL and Navigation Bar?

前端 未结 7 1195
眼角桃花
眼角桃花 2020-11-30 23:23

I am currently building a News Aggregator App and I am using InAppBrowser for people to read the articles. Now, my questions is: Can I remove the URL and Navigation Bar? Als

7条回答
  •  不思量自难忘°
    2020-12-01 00:13

    If you want to keep the done/close button and remove everything else, keep location=yes:

    var ref = window.open('http://apache.org', '_blank', 'location=yes');
    

    and make changes in the inappbrowser.java file:

    toolbar.addView(close);
    close.setText("Done");
    
    if (getShowLocationBar()) {
    main.addView(toolbar);}
    

    Remove the editText and actionButtonContainer. Hope it helps.

提交回复
热议问题