Tableview SeparatorColor Not Changing?

You must Login before you can answer or comment on any questions.

My application temporarily requires hiding tableview separators. On iPhone I can use the separatorStyle property, but Android I have to adjust the separator color.

For an already created & displayed table, I set the separatorColor to transparent and all of them hide. However, when I set the color back to '#e1e1e1' the separarors are still transparent. I'm not creating a new table, just loading new data (via setData) and changing the separators. The same behavior happens on iOS if I try the color rather than style property.

Any ideas of things to try? All the table rows have unique classNames.

1 Answer

Wouldn't you know it.....spend an hour trying to find the problem, ask the question find the answer a minute later.

I had misspelled separatorColor one time, consequently it wasn't working. Correcting the spelling fixed the issue.

— answered 2 years ago by Mike Robinson
answer permalink
1 Comment
  • Not that I'm proud of it, but thank you for posting this. I too had the exact same issue... Oops

    — commented 6 months ago by Chris Albee

Your Answer

Think you can help? Login to answer this question!