{ "id": "62997", "key": "TIMOB-2365", "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": "11241", "name": "Release 1.6.0 M08", "archived": true, "released": true, "releaseDate": "2011-02-07" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:54.000+0000", "created": "2011-04-15T03:17:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "feature", "picker", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:58:54.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}{html}", "attachment": [], "flagged": false, "summary": "Android: Spinner-style Picker needs to support dimensions", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "128281", "author": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bill - I don't know if my Helpdesk request #92651\n(android-picker-wspinner-limited-to-3-columns) is included in this\nor the other picker request items, but wanted to put it out there,\nFYI. We have an iOS app that uses 4 columns - ideal for getting\nmaximum screen real estate use for user input out of the Picker,\nesp. when the values of each field are relatively limited in range.\nI would think 5 columns would be a reasonable limit. I do hope that\nthe limit of 3 can be lifted in the 1.6 release(?).

{html}", "updateAuthor": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:52.000+0000", "updated": "2011-04-15T03:17:52.000+0000" }, { "id": "128282", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

There is no limit of 3 (you might think that because it's only\nshowing three due to its inability to have column widths applied to\nit.)

\n

For example:

\n
\n/*global Ti, Titanium, alert, JSON, require, setTimeout, setInterval */\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({  \n    title:'Test',\n    backgroundColor:'#000',\n    exitOnClose: true\n});\n\nvar columns = [];\nfor (var i = 0; i < 7; i++) {\n    var rows = [];\n    for (var j = 0; j < 3; j++) {\n        rows.push(Ti.UI.createPickerRow({title:'x'}));\n    }\n    columns.push(Ti.UI.createPickerColumn({rows:rows}));\n}\nwin.add(Ti.UI.createPicker({\n    type: Ti.UI.PICKER_TYPE_PLAIN,\n    useSpinner: true,\n    columns:columns\n}));\n\nwin.open();\n
\n

That will easily show 7 columns on a 320 width screen. But it's\nalso pretty useless. :)

\n

But yeah, this is exactly the kind of thing I'm working on: the\nability to set column dimensions and such, so you can control how\nit takes up real estate.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:17:52.000+0000", "updated": "2011-04-15T03:17:52.000+0000" }, { "id": "128283", "author": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

So if I remove the explicit widths, should my app show 4\ncolumns? Not sure why the widths are so large now if it ignores\nwhat I provided...? (The contents are not that wide.) Also, will\nthe current version pay attention to font size?

{html}", "updateAuthor": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:52.000+0000", "updated": "2011-04-15T03:17:52.000+0000" }, { "id": "128284", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [be86230d6ee9c657c39326efcd04a1d3154d9c7c])\n[#2365] First push of re-factored spinner. Still\nneed to apply styles/dimensions. \nhttps://github.com/appcelerator/titanium_mobile/commit/be86230d6ee9...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:17:52.000+0000", "updated": "2011-04-15T03:17:52.000+0000" }, { "id": "128285", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [30b41a3a4fa5693555afca3c91ca7824eb508dfb])\n[#2365 state:fixed-in-qa] support font/text\nattributes in spinner, as well as removing columns and replacing\nrows in existing columns. \nhttps://github.com/appcelerator/titanium_mobile/commit/30b41a3a4fa5...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:17:53.000+0000", "updated": "2011-04-15T03:17:53.000+0000" }, { "id": "128286", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

The test for this is in KitchenSink: Controls -> Picker ->\nAndroid \"useSpinner\" - text (2). It shows a few examples such as\nsetting font characteristics and explicit column widths.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:17:53.000+0000", "updated": "2011-04-15T03:17:53.000+0000" }, { "id": "128287", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [58d6da5d262768bbe1273c880df98b9a22a29cf4])\n[#2365] update the 'Android useSpinner text (2)'\ntest to show the new selectionIndicator property \nhttps://github.com/appcelerator/titanium_mobile/commit/58d6da5d2627...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:17:53.000+0000", "updated": "2011-04-15T03:17:53.000+0000" }, { "id": "128288", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [acf463c9ab59d42d25f0d166e2bfa39caf7a7873])\n[#2365] Also support the documented\nselectionIndicator property and move property change handling to\nthe views as we usually do. \nhttps://github.com/appcelerator/titanium_mobile/commit/acf463c9ab59...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:17:53.000+0000", "updated": "2011-04-15T03:17:53.000+0000" }, { "id": "128289", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

verified on droid2 2.2

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:17:53.000+0000", "updated": "2011-04-15T03:17:53.000+0000" }, { "id": "128290", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [3e6469ab5a206d255d5b3f45d696a3a000063a77])\n[#2365 state:fixed-in-qa] Handle required\nre-layout when visibleItems or font characteristics changed after\nalready layed out. \nhttps://github.com/appcelerator/titanium_mobile/commit/3e6469ab5a20...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:17:54.000+0000", "updated": "2011-04-15T03:17:54.000+0000" }, { "id": "128291", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

verified again on emulator 2.2

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:17:54.000+0000", "updated": "2011-04-15T03:17:54.000+0000" }, { "id": "128292", "author": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Bill - the latest builds of 1.6.0 (Feb 16) show that custom\nattributes for picker rows are not supported in the Android picker\n- they simply are not accessible. This greatly reduces the utility\nof the picker if you cannot provide formatted data whose native\nvalue or code is not accessible from the event handler object. See\npicker_basic.js in the Kitchen Sink - custom_item value is always\nundefined in Android; works in iOS. Would love to know if this is\nan easy fix likely to make the 1.6.0 release?

{html}", "updateAuthor": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:55.000+0000", "updated": "2011-04-15T03:17:55.000+0000" }, { "id": "128293", "author": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Also - is there any doc on using fonts and other attributes for\nthe Android picker? The online API docs seem to indicate that\nfontSize is supported, but that has no effect; the doc page also\nshows \"font-size\", \"font-weight\", and \"font-family\" - are these\nsupported at all? Is there an ability to control the height of the\npicker itself (e.g., you want 5 rows shown but in a larger\nsize)?

{html}", "updateAuthor": { "name": "richbaughman", "key": "richbaughman", "displayName": "Rich Baughman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:55.000+0000", "updated": "2011-04-15T03:17:55.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }