Titanium API
UI:
ButtonBar:
1 // BASIC BUTTON BAR 2 // 3 var bb1 = Titanium.UI.createButtonBar({ 4 labels:['One', 'Two', 'Three'], 5 backgroundColor:'#336699', 6 top:50, 7 style:Titanium.UI.iPhone.SystemButtonStyle.BAR, 8 height:25, 9 width:200 10 });
Custom Button Bar:
1 var buttonObjects = [ 2 {title:'Toggle Style', width:110, enabled:false}, 3 {image:'/images/slider_thumb.png', width:50}, 4 {title:'Toggle Enabled', width:140} 5 ]; 6 var bb4 = Titanium.UI.createButtonBar({ 7 labels:buttonObjects, 8 backgroundColor:'#000', 9 top:100, 10 style:Titanium.UI.iPhone.SystemButtonStyle.BAR, 11 height:40, 12 width:'auto' 13 }); 14 15 win.add(bb4);