【发布时间】:2012-01-01 18:57:10
【问题描述】:
我想在当前窗口中隐藏标题栏。我已经搜索了“hideNavBar:true”,但它仍然无法正常工作,所以请帮助我从 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,但它仅适用于第一个屏幕。
【问题讨论】:
标签: titanium