button image only no title

You must Login before you can answer or comment on any questions.

I tried with this code but does not work:

var dx = Ti.UI.createButton({
    backgroundImage: '/images/dx.png',
        height: 16,
        width: 16,
    });
    win1.rightNavButton = dx;
But if I put this code, is obviously only see the button with the title:
var dx = Ti.UI.createButton({
    title:'Image',
        height: 16,
        width: 16,
    });
    win1.rightNavButton = dx;
how can I make it work? Thank you!

3 Answers

Try with "image" property.

— answered 8 months ago by Ivan Škugor
answer permalink
5 Comments
  • ok now it works, but how do I remove the layout of the button? Just want to put the logo in the top right of every window of the app... Thanks!

    — commented 8 months ago by Filippo Perbellini

  • I don't understand what do you mean by "remove the layout", could you explain that?

    — commented 8 months ago by Ivan Škugor

  • http://img145.imageshack.us/img145/9373/dxbutton.png has the border as if it were a button .. how can I remove it?

    — commented 8 months ago by Filippo Perbellini

  • Show 2 more comments

http://img145.imageshack.us/img145/9373/dxbutton.png has the border as if it were a button .. how can I remove it?

Your Answer

Think you can help? Login to answer this question!