如何使用Ionic 2隐藏虚拟按钮和标题栏? [英] How to hide virtual buttons and title bar using Ionic 2?
本文介绍了如何使用Ionic 2隐藏虚拟按钮和标题栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一款Ionic 2 Android应用程序。
我想知道如何隐藏底部的控制按钮(←O口)以及顶部的标题栏?
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?
推荐答案
根据此问题,我们可以使用以下代码隐藏Ionic 2中的状态栏:
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();
}
}
这篇关于如何使用Ionic 2隐藏虚拟按钮和标题栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文