Titanium Community Questions & Answer Archive

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

hide border on TableViewRow

hi,

when using TableViewRow there is always a bottom border. can i disable it?

— asked November 24th 2010 by marcin kolonko
  • android
  • border
  • bottomborder
  • tableviewrow
1 Comment
  • Do you mean the row separator?

    — commented November 24th 2010 by Don Thorp

4 Answers

  • You need to set the separatorColor for the TableView to be the color of
    your background ie:

    Titanium.UI.createTableView(separatorColor: '#ffffff');
    
    — answered January 17th 2011 by Thomas Wheeler
    permalink
    2 Comments
    • thanks a lot…

      — commented May 10th 2012 by Dinesh G D
    • grt ..its working

      — commented September 11th 2013 by Dev eloper
  • use 'Titanium.UI.iPhone.TableViewSeparatorStyle.NONE'

    var table = Titanium.UI.createTableView({
      separatorStyle: Titanium.UI.iPhone.TableViewSeparatorStyle.NONE
    });
    
    — answered November 2nd 2011 by paranoiase kang
    permalink
    0 Comments
  • Marcin

    Have you tried setting Titanium.UI.TableView's separatorColor property to the same value as your rows' background color, or maybe setting it to 'transparent'?

    — answered November 25th 2010 by Paul Dowsett
    permalink
    0 Comments
  • Have you tried borderWidth = 0 or borderColor = your_background_color?

    — answered November 24th 2010 by Tim Poulsen
    permalink
    1 Comment
    • setting it to the backgroundColor isn't an option, and borderWidth = 0 isn't working unfortunatly

      — commented November 25th 2010 by marcin kolonko
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.