![](/img/trans.png)
[英]Is it possible to have multiple colors with a Titanium Appcelerator button bar? Titanium.UI.createButtonBar
[英]How can I add images as labels on Titanium.UI.CreateButtonBar?
这是我的代码,我想用图像替换“开始”,“暂停”和“停止”
var controlBar = Titanium.UI.createButtonBar({
labels: ['START','PAUSE','STOP'],
style: Titanium.UI.iPhone.SystemButtonStyle.BAR,
backgroundColor: '#000080',
top:10,
width:200,
height:40
});
labels
属性也可以是BarItemType的数组
var controlBar = Titanium.UI.createButtonBar({
labels: ['START','PAUSE', {
image : '/path/to/image',
title : 'Title',
enabled : true
}],
style: Titanium.UI.iPhone.SystemButtonStyle.BAR,
backgroundColor: '#000080',
top:10,
width:200,
height:40
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.