4
以下是我的代码。它完美适用于iPhone,但图像对于Android来说非常有用,所以它没有显示标签。如何在Titanium中的按钮上放置图像和标签?
var friendsButton = Titanium.UI.createButton({
top : 0,
left : 91,
width : 90,
height : 101,
style : 0,
backgroundImage : '/img/buttonMiddle.png',
image : '/img/friendcopy.png'
});
var friendLabel = Titanium.UI.createLabel({
top : 35,
left : 25,
width : 100,
height : 100,
text : 'Friend',
color : 'white',
font : {fontSize:12}
});
friendsButton.add(friendLabel);
请帮我这个。我是新来的钛
这不是在我身边工作,仍然是同样的问题 – spaleja