Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13530] ListView: implement separatorColor in v2

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2013-04-26T16:16:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelslistview
ReporterCarter Lathrop
AssigneeIngo Muschenetz
Created2013-04-11T20:17:20.000+0000
Updated2017-03-20T22:30:05.000+0000

Description

SeparatorColor property for ListView is currently planned for v2. ListViews currently show black separators on Android, grey separators on iOS. However, it is quite unlikely that an existing app, which might have a lot of TableViews with custom separatorColors (e.g. to follow color guidelines for the app brand), can be updated to use ListView with those default colors. While many other v2 features can be simulated in v1, or manually added with additional coding, the lack of separatorColor forces a VISUAL limitation which cannot be circumvented. Please consider including separatorColor in 3.1 GA

Comments

  1. Ingo Muschenetz 2013-04-11

    This is not going to happen for 3.1.0 as we cannot accept any new features at this time. We will consider it for 3.1.1.
  2. Carter Lathrop 2013-04-11

    Thank you, the Banzai mobile team was inquiring about this and I suggested they create a new feature request. I will make sure they get this info. Carter
  3. Danny Pham 2013-04-16

    You can copy the method from TiUITableView.m and paste into TiUIListView.m
       -(void)setSeparatorColor_:(id)arg
       {
       	TiColor *color = [TiUtils colorValue:arg];
       	[[self tableView] setSeparatorColor:[color _color]];
       }
       
  4. Itay Avtalyon 2013-04-22

    @Danny Pham, thanks! Do you have code snippet for Android as well?
  5. Ingo Muschenetz 2013-04-26

    Marking as a duplicate of the main ticket since we don't normally break out separate feature implementations. Please follow along there.
  6. Neville Dastur 2013-08-13

    Please do consider this for 3.1.1. It would appear to be a well defined small code change and as the OP says it can not be worked around, unlikely a lot of the other v2 planned features. Thank you
  7. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source