Titanium Community Questions & Answer Archive

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

Hiding borders in tableview

Hi,
Is there a way to hide the borders between different rows in a tableview? I tried setting the property borderwidth to 0 but it does not help. I am using android emulator.

— asked May 11th 2010 by Dharani Karthikeyan
  • border
  • tableview
2 Comments
  • How about altering the separatorColor so that it's the same colour as the table? That will work on Android as well as iPhone.

    — commented June 11th 2010 by Matt Collinge
  • Thank you Karlo Kilayko
    It's very useful

    — commented September 28th 2010 by Ahmed Hammami

6 Answers

  • Hi there,

    I think separatorColor:'transparent' might work.

    cheers,
    Chris.

    — answered June 12th 2010 by Chris Reed
    permalink
    3 Comments
    • This works for me. It makes the separating lines between tableRows disappear. Thnx!

      — commented November 25th 2010 by Ward Geene
    • This does it. And to be clear, it goes on the table itself, not individual rows.

      — commented October 8th 2011 by Chris Hoopes
    • This works for me too. Thanks!

      — commented March 16th 2012 by Gabriela Stefan
  • You may be looking for something like this:

    separatorStyle: Titanium.UI.iPhone.TableViewSeparatorStyle.NONE
    

    But I believe (as is indicated) it's an iPhone only attribute

    — answered June 11th 2010 by karlo kilayko
    permalink
    1 Comment
    • This worked for me.

      — commented November 9th 2010 by Arthur Roussel
  • 2 things.

    Are you setting this on a TableView or a TableViewRow?

    2nd, not sure if its a mis-spelling, but it should be borderWidth, not borderwidth.

    let me know if this doesn't help.

    — answered May 11th 2010 by Clint Tredway
    permalink
    0 Comments
  • Thanks for you hints..But I tried setting both on TableView and TableViewRow and it did not work..

    — answered May 12th 2010 by Dharani Karthikeyan
    permalink
    0 Comments
  • Hmph.. I added my answer as a comment & can't delete it.

    Here's the answer if you want to try and vote it up;

    How about altering the separatorColor so that it's the same colour as the table? That will work on Android as well as iPhone.

    — answered June 11th 2010 by Matt Collinge
    permalink
    0 Comments
  • I have same issue. and i need for iPhone as well as Android.

    — answered June 28th 2012 by Titanium Dev
    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.