Titanium Community Questions & Answer Archive

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

Separators on empty rows

How can I avoid separators on empty rows?

I know that I can create a tableview with separatorStyle NONE and add a border to every row. But if the row has child mark the border will not be painted to the whole width of the row.

Any ideas?

— asked November 23rd 2010 by Sven Wiese-Solty
  • ipad
  • row
  • separator
  • tableview
0 Comments

2 Answers

  • Accepted Answer

    Sven,

    If you add a table footer it will rid the empty rows. For example:

    var tblFooterView = Ti.UI.createView({
      width: 300,
      height: 1,
      backgroundColor: '#FFF'
    });
    
    tblView.footerView = tblFooterView;
    

    Let me know if you need anything else.


    http://www.srcnix.com

    — answered November 23rd 2010 by Steve Clarke
    permalink
    0 Comments
  • look at this answer

    — answered July 23rd 2015 by Hendrik Bugdoll
    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.