Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4041] Android: Add "separatorStyle" property to Ti.UI.ListView

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2019-04-23T18:18:58.000+0000
Affected Version/sRelease 1.7.0, Release 1.6.2
Fix Version/sRelease 8.1.0
ComponentsAndroid
LabelsListView, android, feature, parity
ReporterAlan Leard
AssigneeJoshua Quick
Created2011-05-10T20:56:44.000+0000
Updated2019-04-23T18:18:58.000+0000

Description

Users have requested the ability to eliminate the Separator in a tableview so when they are using backgroundImages for the TableViewRow there is no break in between the rows. See screenshot: http://screencast.com/t/5lDQUpCyHpxv Setting the tableView seperatorColor to 'transparent' shows the table backgroundColor. Sample project is attached. The API should match iOS as closely as possible, so we are moving the existing iOS* constants into the top level UI namespace, and keeping the existing separatorStyle property that iOS uses. The valid styles should be: Ti.UI.TableViewSeparatorStyle.NONE Ti.UI.TableViewSeparatorStyle.SINGLE_LINE In the future we can also implement custom separator drawables by passing them to this property (Android only)

Attachments

FileDateSize
app.js2011-08-10T21:03:03.000+00001636
Archive.zip2011-05-10T21:15:40.000+00002411867

Comments

  1. Opie Cyrus 2011-08-10

    test case utilizing new separatorVisible property
  2. Stephen Tramer 2011-08-12

    This ticket duplicates existing iOS functionality (Ti.UI.iPhone.TableViewSeperatorStyle.NONE) and as a result we need to have a discussion about this API point. It seems perfectly reasonable to have a Ti.UI.TableView.SEPERATOR_NONE style, or something similar. Future-proofing is a valid concern as well as compatibility with existing systems.
  3. Marshall Culpepper 2011-09-08

    Updated based on parity discussion
  4. Hans Knöchel 2014-01-25

    Seems to be "In progress" since 2011, it may be updated to the current status.
  5. Hans Knöchel 2019-01-25

    PR: https://github.com/appcelerator/titanium_mobile/pull/10648
  6. Lokesh Choudhary 2019-04-16

    PR Merged.
  7. Keerthi Mahalingam 2019-04-23

    Verified using SDK 8.1.0.v20190423074844.Works as expected..Closing.
       Test environment:
       Name                        = Mac OS X
         Version                     = 10.13.6
         Architecture                = 64bit
         # CPUs                      = 8
         Memory                      = 17179869184
       Node.js
         Node.js Version             = 8.9.1
         npm Version                 = 5.5.1
       Titanium CLI
         CLI Version                 = 5.1.1
       Titanium SDK
       SDK  =8.1.0.v20190423074844
       CLI =7.0.11-70X.1
       Device =oneplus 5t version 9
       Emulator= pixel android 8
       

JSON Source