{ "id": "63642", "key": "TIMOB-3010", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T03:34:43.000+0000", "created": "2011-04-15T03:34:42.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "feature", "ios", "klist", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-06T17:37:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Problem

\n

Client wants to change the pageControl dots to a color different\nthan white.

\n

Suggested Solution

\n

Add a property for the foreground color\n\"pagingControlForegroundColor\", similar to how we have\n\"setPagingControlColor_\" right now (which controls the background\ncolor of the paging control, but not the dots).

\n

Sample Code

\n

In 1.6.0, this will make a scrollable view with three white dots\non a black background. With the new property, the dots would be\nred.

\n
\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\n\nwin.add(Titanium.UI.createScrollableView({\n    views:[\n        Titanium.UI.createView({backgroundColor:'#123'}),\n        Titanium.UI.createView({backgroundColor:'#231'}),\n        Titanium.UI.createView({backgroundColor:'#312'})\n    ],\n    showPagingControl:true,\n    pagingControlColor: 'black',\n    pagingControlHeight: 50,\n    pagingControlForegroundColor: 'red'\n}));\n\nwin.open();\n
\n

Associated Helpdesk Ticket

\n

http://developer.appcelerator.com/helpdesk/view/69461

{html}", "attachment": [], "flagged": false, "summary": "iOS: Expose ScrollableView's pageControl foregroundColor", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "129865", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "{html}

Possible Workaround

\n

Don't show the paging control, and overlay a custom view with\nimages or buttons over the scrollable view. When the user touches\none of these, tell the scrollable view to change the active\nview.

{html}", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-04-15T03:34:42.000+0000", "updated": "2011-04-15T03:34:42.000+0000" }, { "id": "129866", "author": { "name": "martinprebio", "key": "martinprebio", "displayName": "Martin Prebio", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

+1

\n

Exposing the attribute is much easier than creating an own view\nwith all the Ti/iPhone magic.

{html}", "updateAuthor": { "name": "martinprebio", "key": "martinprebio", "displayName": "Martin Prebio", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:34:42.000+0000", "updated": "2011-04-15T03:34:42.000+0000" }, { "id": "129867", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Apple does not provide an API to change the color of the dots on\nthe UIPageControl. The client could implement their own custom\ncontrol in this case.

{html}", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:34:43.000+0000", "updated": "2011-04-15T03:34:43.000+0000" }, { "id": "297864", "author": { "name": "shodan_uk", "key": "shodan_uk", "displayName": "Terry Morgan", "active": true, "timeZone": "Europe/London" }, "body": "Looks like this has changed with iOS7:\r\n\r\nhttps://developer.apple.com/library/ios/documentation/uikit/reference/UIPageControl_Class/Reference/Reference.html#//apple_ref/occ/instp/UIPageControl/currentPageIndicatorTintColor\r\n\r\nIt's now possible to set the tint colour of the dots. Any plans to implement this?", "updateAuthor": { "name": "shodan_uk", "key": "shodan_uk", "displayName": "Terry Morgan", "active": true, "timeZone": "Europe/London" }, "created": "2014-03-19T11:53:20.000+0000", "updated": "2014-03-19T11:53:20.000+0000" }, { "id": "394312", "author": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei DionĂ­sio", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "[2] It's now possible to set the tint colour of the dots. Any plans to implement this?", "updateAuthor": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei DionĂ­sio", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2016-08-24T23:08:47.000+0000", "updated": "2016-08-24T23:08:47.000+0000" }, { "id": "439952", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:37:06.000+0000", "updated": "2018-08-06T17:37:06.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }