Titanium Community Questions & Answer Archive

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

iPhone: Access to Native colored buttons

I know the kitchen sink has examples of a green button that is an imported graphic. But I was wondering if there is a way to get that look with just code or using native images?

For example this image.
Is there a way to do this without importing graphics? Or using native images?

Thanks,

Fish

— asked November 18th 2010 by Dave F
  • buttons
  • iphone
0 Comments

3 Answers

  • With an OptionDialog ??

    http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.OptionDialog-object

    — answered November 18th 2010 by Pascal PLUCHON
    permalink
    0 Comments
  • Sorry. I should have mentioned I want to use this at the button at the bottom of a table view not as an option dialog button.

    Thanks,
    Fish

    — answered November 18th 2010 by Dave F
    permalink
    0 Comments
  • I use trick for this - I use a buttonbar with one label only. It allows you to set the background color :)

    — answered November 18th 2010 by Dan Tamas
    permalink
    1 Comment
    • Thats Brilliant! thanks dude!!!

      — commented November 18th 2010 by Dave F
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.