我想隐藏标题栏从当前窗口。我已经搜索“hideNavBar:true”,但它仍然无法正常工作,所以请帮助我隐藏Android应用的标题栏。我的代码如下。如何从当前窗口中隐藏标题栏钛Android
我create.js
是:
var curWin = Ti.UI.currentWindow;
var imgarr = [{
leftImage: 'images/previous.png',
title: "Create Your Popmount",
hasChild: true,
path: 'Take_Photo.js',
navBarHidden: true
}, {
leftImage: 'images/previous.png',
title: "Get Information",
hasChild: true,
path: 'Take_Photo.js',
navBarHidden: true
}, {
leftImage: 'images/previous.png',
title: "Go to Website",
hasChild: true,
path: 'Take_Photo.js',
navBarHidden: 'true'
}];
//creating table
和photo.js
是:
var win = Titanium.UI.currentWindow;
var imageView = Titanium.UI.createImageView({
height: 200,
width: 200,
top: 20,
left: 10,
backgroundColor: '#999'
});
win.add(imageView);
但从takephoto.js
我不能隐藏导航栏/标题栏为Android系统。我也在我的Tiapp.xml
中为导航栏写入了true,但它仅适用于第一个屏幕。
'titleControl'适用于iOS,不适用于Android。 –