Titanium Community Questions & Answer Archive

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

Activity Indicator Text

Hi there,

The iPhone simulator seems to work fine, however there is no text present on my activity indicator as per the below:

var actInd = Titanium.UI.createActivityIndicator({
    bottom:50, 
    height:55,
    width:180,
    color:'#FFFFFF',
    backgroundColor:'#000',
    opacity:0.9,
    borderRadius:5,
    borderColor:'#000',
    font:{fontFamily:'Helvetica Neue', fontSize:13},
    message:' Loading...',
    style:Titanium.UI.iPhone.ActivityIndicatorStyle.PLAIN
});
win.add(actInd);

The indicator is present but not the text. Any ideas?

Many thanks

— asked June 17th 2010 by Craig Jones
  • activity
  • indicator
  • text
0 Comments

1 Answer

  • I have few experiences with spinner text, sometimes it shows but occasional it's not there but was able to get it worked using width = 'auto'

    — answered June 17th 2010 by Daniel Lim
    permalink
    11 Comments
    • thanks man, just what i was looking for

      — commented July 15th 2010 by Richie Mortimer
    • with width: 'auto' the problem as been solved

      — commented October 13th 2010 by Francesco Boscarino
    • I love you! Was driving me nuts.

      — commented January 19th 2011 by Bart Lewis
    • Thank you! This was what I needed also.

      — commented January 21st 2011 by Mike Dosey
    • It does work. But is no one concerned that 'auto' is not necessarily the desired width?

      — commented June 11th 2011 by Zhenya Kogan
    • A big thank you for this. After having wasted almost 2 hours on this, this is fantastic tip.

      — commented November 17th 2011 by Anuj Surana
    • thank you..It helped me

      — commented December 13th 2011 by LOKESH KV
    • any permanent fix for this. setting width to auto works, but as Zhenya mentioned, auto is not always the desired width

      — commented April 27th 2012 by Christopher Stea
    • One idea is to set it to auto first. Once you call the show() method, set it to the desired width

      — commented April 27th 2012 by Christopher Stea
    • Thank you!!!!

      — commented June 5th 2012 by Raffaele Chiocca
    • pretty cool activity indicator i wrote check it out on github

      — commented September 4th 2013 by Anthony Njuguna
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.