【发布时间】:2025-12-16 21:25:02
【问题描述】:
我的环境是titanim 6.0.1.GA
在Android上不显示标签,而iOS正确显示标签。
var descriptionView = Ti.UI.createView({
height:'100%',width:'100%'
children:[Ti.UI.createLabel({
wordWrap :true,top:0,
color:'black',
text:"my label",
})]
});
它在 Android/iOS 上都运行良好
var descriptionView = Ti.UI.createView({
height:'100%',width:'100%'
});
var label = Ti.UI.createLabel({
wordWrap :true,top:0,
color:'black',
text:"my label",
});
descriptionView.add(label)
我只是想知道使用儿童对andorid来说是不好的行为吗? 但是,有时简化代码非常有用。
有没有人在Android上成功使用children?
【问题讨论】: