2
var headerView = Ti.UI.createView({
backgroundColor:'#1D561C',
top:0,
height:40
})
var mainWindow = Ti.UI.createWindow({
backgroundColor:'#EAE6DB',
top:0,
x: 40,
height: 'auto',
height:Titanium.Platform.displayCaps.platformHeight,
})
var footerView = Ti.UI.createView({
backgroundColor:'#1D561C',
top:mainWindow.height - 40,
height:40
})
我有我的頭文件中定義爲40和頁腳40現在怎麼我到主窗口說,你應該在40 PX開始......當我在x:40
定義它頁腳確實消失。通過編程設置我的主窗口的高度在鈦