Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Button: title & icon align

Hi all,
I was wondering if is possible to create a button where the icon is on the top, and the title is on the bottom.

Thanks and regards

— asked April 30th 2010 by Dani C
  • button
  • icon
  • title
0 Comments

5 Answers

  • Hey Dani,

    You mean like this?

      icon
      text
    

    I don't believe so but you can fake it by creating the look you want in an image and setting that to the button's backgroundImage property.

    — answered April 30th 2010 by Dan Giulvezan
    permalink
    0 Comments
  • I know this is very old, but for anyone else that finds this you can add a label and an image view to your button to accomplish this.

    — answered March 3rd 2012 by Brian Ernesto
    permalink
    1 Comment
    • Just a quick note, you can do that on iPhone, it doesn't work on Android.

      — commented March 5th 2012 by Grant Smith
  • Maybe not with a button, but a view with a label and an imageview can have the same effect.

    — answered September 19th 2013 by João Serra
    permalink
    0 Comments
  • Hi Dan,
    yes, that's exactly what I want. I would like to create a button like the Window Tab ones, which means that the label should be partially placed down the center of the button.

    — answered April 30th 2010 by Dani C
    permalink
    0 Comments
  • Yeah, I would just use an image for that then.

    — answered April 30th 2010 by Dan Giulvezan
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.