Titanium Button image does not show up -


i need add background image button in titanium studio (version 3.1.1). tried can think of still button image not show up. image file path correct. cleaned project, restarted titanium still not working. had same problem when trying add window background image, didn't show , appeared without changing line of code. how can fix this?

var pauseresumebutton = titanium.ui.createbutton({ title:"play", top:'70%', width:80, height:80, backgroundcolor:'green', backgroundimage:"/graphics/play.png", }); 

try following code

var pauseresumebutton = titanium.ui.createbutton({     title:"play",     top:'70%',     width:80,     height:80,     backgroundcolor:'green',     backgroundimage:"graphics/play.png", }); 

also please refer this answer


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -