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 : Searchbar bar gradient

Guys,

Is it possible to do gradient on the bar of searchbar?

Tried all possible combination but it just won't render. So i wanted to check if anyone else had any luck.

I check the bug list and it's not available there so…

regards,
clayton

— asked June 17th 2010 by Clayton Narcis
  • gradient
  • iphone
  • searchbar
0 Comments

3 Answers

  • If anyone is looking for the gradient code.

        backgroundGradient:{
            type:'linear',
            colors:['#f4be66','#ea9511'],
            startPoint:{x:0,y:0},
            endPoint:{x:0,y:45},
            backFillStart:false
        }
    
    — answered July 19th 2010 by Clayton Narcis
    permalink
    0 Comments
  • You can just add:

    barColor: '#yourFavoriteHexColor'

    to switch the Color of your Searchbar.

    As I know this will not work on Android too.

    — answered November 2nd 2011 by Sino Boeckmann
    permalink
    0 Comments
  • Does gradient work on Android?

    I have been trying, but its not doing anything :(

    — answered August 23rd 2010 by Jay J
    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.