Titanium Community Questions & Answer Archive

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

White gap in tableview rows

I have a table view with rows populated with images. Each image shares the same color background, creating a nice feel to the app, except there's this really annoying 1 pixel white strip in between each row. This is on iPhone. I haven't tested on Android yet.

Notice the 1 pixel strip in between the red, turquoise, and yellow rows.

As seen here

I've tried everything from setting each row's background color to black, their border to black, the table view's background to black, border to black, etc… Nothing works.

Ideally, I would like to make that gap 0 pixels tall. I would settle with being able to change its color.

Any suggestions?

— asked December 3rd 2010 by Michael Whitaker
  • iphone
  • mobile
  • padding
  • tableview
  • tableviewrow
0 Comments

1 Answer

  • Accepted Answer

    You need to set the separatorStyle of the table to

    Titanium.UI.iPhone.TableViewSeparatorStyle.NONE

    — answered December 3rd 2010 by Dan Tamas
    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.