{ "id": "106619", "key": "TIMOB-12443", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2017-07-05T17:28:33.000+0000", "created": "2012-12-17T09:28:21.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-05T17:28:33.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": "h6.Issue\r\nWhile using the trackball within a tableview each row is selected although the focusable property is (default and explicitly) set to false.\r\n\r\nh6.Expected Result\r\nNavigating with the trackball may scroll a tableview but does not select its rows.\r\n\r\nh6.Actual Result\r\nRows are selected (green background in my case, like you've tapped them) while using trackball\r\n\r\nh6.Repro sequence\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n width:Ti.UI.FILL,\r\n height:Ti.UI.FILL\r\n});\r\n\r\nvar rows = [];\r\nfor ( var i = 0; i < 50; i++) {\r\n rows.push({title: 'Row ' + i, focusable: false});\r\n}\r\nvar tableView = Ti.UI.createTableView({\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.FILL,\r\n data: rows; //maybe i used [rows] in my test case, please try both if one of this might be wrong, cause i'm writing it out of my mind.\r\n});\r\nwin.add(tableView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: focusable does not prevent focusing while using trackball", "creator": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 2.1.3.GA & 3.0.0.GA\r\nHTC Desire Android 2.2", "comment": { "comments": [ { "id": "232122", "author": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "body": "it seems to apply to all elements. also buttons are focused although they are declared with focusable false!", "updateAuthor": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-12-20T08:27:32.000+0000", "updated": "2012-12-20T08:27:32.000+0000" }, { "id": "235796", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I'm not sure to follow you. The *focusable* property, i.e. http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.View-property-focusable is meant to make a View focusable or not while navigating with the trackball.\n\nIn Android all the clickable UI items are expected to get focus and be clicked with trackball/dpad mode. That expected Android behavior it will try to focus the first UI item.\n\nYou can also try to set it to be fully transparent but it could get cosmetic side effects.\n\nI'll leave this open for a while in case of any clarifications.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-24T23:06:11.000+0000", "updated": "2013-01-24T23:06:11.000+0000" }, { "id": "236122", "author": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~egomez] Sorry but maybe i didn't understand what *focusable* correctly. But if you try the example above there is no difference between foucsable: true and focusable: false. So what should be different? ", "updateAuthor": { "name": "mrvvoo", "key": "mrvvoo", "displayName": "Markus Wutzler", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-01-26T13:22:53.000+0000", "updated": "2013-01-26T13:22:53.000+0000" }, { "id": "236147", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Make sure that all user interface elements that can accept input (touches or typing) can be reached with a directional controller, such as a trackball, D-pad (physical or virtual) or navigation gestures.\n\nMoved to main project to dig into it. Labels and format updated.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-01-28T01:00:14.000+0000", "updated": "2013-01-28T01:00:14.000+0000" }, { "id": "242438", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "device specific,track ball required\n\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T12:12:54.000+0000", "updated": "2013-03-15T12:12:54.000+0000" }, { "id": "423527", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-05T17:28:33.000+0000", "updated": "2017-07-05T17:28:33.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }