iphone - BackgroundImage problem with my back button -
i have concern image attributed button not appear added statement nothing
win1.setbackbuttontitleimage('back.png');
here code
var buttonretour = ti.ui.createbuttonbar({labels:['retour'], backgroundcolor:'#ae4041', backgroundimage:'back.png', color:'#ffffff' }); buttonretour.addeventlistener('click', function(){ tabgroup.close(); }); win1.leftnavbutton = buttonretour; win1.setbackbuttontitleimage('back.png');
you have idea problem
thank
i found solution
i changed code creation of button using following
var backbutton = ti.ui.createbutton({ title:'accueil', backgroundimage:'images/back.png', font:{fontsize:13,fontweight:'bold'}, textalign:'center', width:75, height: 35 }); backbutton.addeventlistener('click', function(){ tabgroup.close(); }); win1.leftnavbutton = backbutton;
try that. note, not sure whether can use both backgroundcolor
, backgroundimage
:
var buttonretour = titanium.ui.createbutton({ title:'retour', backgroundcolor: '#ae4041', // not sure whether can use both bgcolor , bgimage backgroundimage:'back.png', width:100, //set proper width here height:20 //set proper height here }); buttonretour.addeventlistener('click', function() { tabgroup.close(); }); win1.leftnavbutton = buttonretour;
Comments
Post a Comment