How to hide virtual buttons and title bar using Io

2019-07-27 10:04发布

enter image description here

I'm developing an Ionic 2 Android application. I want to know how can I hide the control button on the bottom ("← O 口") as well as the title bar on the top?

1条回答
一纸荒年 Trace。
2楼-- · 2019-07-27 10:28

According to this question, we can hide the status bar in Ionic 2 using the following code:

import {StatusBar} from 'ionic-native';
import {App, Platform} from 'ionic-angular';
//He wrotes 'ionic/ionic', but it doesn't work for me.
constructor(private platform: Platform) {
    this.platform.ready().then(()=>{
        StatusBar.hide();
    }
}
查看更多
登录 后发表回答