{ "id": "172126", "key": "TIMOB-26336", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-01-11T02:29:52.000+0000", "created": "2018-08-24T09:25:27.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-01-11T02:29:55.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.Reproduce\r\n1.Run the following code in an Alloy project. (Simple structure, textfield is under view, and view is under tableviewRow).\r\n2.Click different Rows (basically card type in the example). \r\n3 There will be a textfield to input.\r\n4.Try #2 and #3 serval times.\r\n\r\nh6.Problem\r\n5. You will see, some times, there is no cursor display in textfield. \r\n6. The other problem is, some times, if you click the textfield, which is focused already. The cursor will disappear.\r\n\r\nh6.Note\r\nMainly code about focus and cursor is around line 471 - 478 in index.js file", "attachment": [ { "id": "65504", "filename": "Curser Record.mov", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2018-09-07T02:28:11.000+0000", "size": 6607796, "mimeType": "video/quicktime" }, { "id": "65474", "filename": "index.js", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2018-08-24T09:22:52.000+0000", "size": 12996, "mimeType": "application/javascript" }, { "id": "65475", "filename": "index.tss", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2018-08-24T09:22:40.000+0000", "size": 783, "mimeType": "application/octet-stream" }, { "id": "65476", "filename": "index.xml", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2018-08-24T09:22:27.000+0000", "size": 141, "mimeType": "text/xml" }, { "id": "65500", "filename": "TIMOB-26336-i.mov", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2018-09-06T18:01:04.000+0000", "size": 9911827, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "Android: Cursor issue when textfield inside view, which is under tableview ", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": "SDK 7.3.0\r\nAndroid 6.0.0", "closedSprints": [ { "id": 1093, "state": "closed", "name": "2018 Sprint 23", "startDate": "2018-11-04T23:35:52.006Z", "endDate": "2018-11-18T23:35:00.000Z", "completeDate": "2018-11-19T05:30:34.338Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "441377", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Any update on this?", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2018-09-06T10:56:01.000+0000", "updated": "2018-09-06T10:56:01.000+0000" }, { "id": "441386", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~sliang] I don't see the cursor disappearing. Please check out the attached screen recording of what I see, also I changed the text field background color to yellow to make the text field area visible.\r\n\r\n \r\n\r\n ", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2018-09-06T17:57:58.000+0000", "updated": "2018-09-06T18:02:52.000+0000" }, { "id": "441400", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "[~fmiao]\r\nChanged background color like you did. Still can see the problem. Please check the record I made. (Android 6 Emulator)\r\n", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2018-09-07T02:27:51.000+0000", "updated": "2018-09-07T02:27:51.000+0000" }, { "id": "441415", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I highly recommend they use ListView and a template for this:\r\n\r\n*index.js*\r\n{code:js}\r\nconst cardDetails = [{\r\n\t\"carddigits\" : \"0000\",\r\n\t\"cardtype\" : \"VISA\",\r\n\t\"cardexpiry\" : \"2018-12-31\",\r\n\t\"validfrom\" : \"2018-08-09\",\r\n\t\"tokenid\" : \"10293170401\"\r\n}, {\r\n\t\"carddigits\" : \"0012\",\r\n\t\"cardtype\" : \"MASTERCARD\",\r\n\t\"cardexpiry\" : \"2018-12-31\",\r\n\t\"validfrom\" : \"2018-08-09\",\r\n\t\"tokenid\" : \"10293172201\"\r\n}, {\r\n\t\"carddigits\" : \"0000\",\r\n\t\"cardtype\" : \"VISA\",\r\n\t\"cardexpiry\" : \"2018-12-31\",\r\n\t\"validfrom\" : \"2018-08-09\",\r\n\t\"tokenid\" : \"10293170401\"\r\n}, {\r\n\t\"carddigits\" : \"0000\",\r\n\t\"cardtype\" : \"VISA\",\r\n\t\"cardexpiry\" : \"2018-12-31\",\r\n\t\"validfrom\" : \"2018-08-09\",\r\n\t\"tokenid\" : \"10293170401\"\r\n}];\r\n\r\nfunction populateCards () {\r\n\tconst section = Ti.UI.createListSection();\r\n\r\n\tlet items = [];\r\n\tfor (let details of cardDetails) {\r\n\t\titems.push({\r\n\t\t\ttype: { text: details.cardtype },\r\n\t\t\tnumber: { text: details.carddigits },\r\n\t\t\tdate: { text: details.cardexpiry }\r\n\t\t});\r\n\t}\r\n\tsection.setItems(items);\r\n\r\n\t$.cardList.setSections([section]);\r\n}\r\n\r\nfunction onClick (e) {\r\n\talert(JSON.stringify(e, null, 1));\r\n}\r\n\r\npopulateCards(); \r\n$.cardWindow.open();\r\n{code}\r\n\r\n*index.xml*\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n*index.tss*\r\n{code:json}\r\n\"#cardWindow\":{\r\n\twidth: Titanium.UI.FILL,\r\n\theight: Titanium.UI.FILL,\r\n\tbackgroundColor: \"#09357a\"\r\n}\r\n\"#cardWindow[platform=android]\":{\r\n\ttheme: \"Theme.NoActionBar\"\r\n}\r\n\"#cardWindow[platform=ios]\":{\r\n\tstatusBarStyle: Titanium.UI.iOS.StatusBar.LIGHT_CONTENT\r\n}\r\n\".WindowClass[platform=android]\":{\r\n\twindowSoftInputMode: Ti.UI.Android.SOFT_INPUT_ADJUST_PAN\r\n}\r\n\r\n\"#cardList\": {\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL\r\n}\r\n\"#checkImage\": {\r\n\tleft: 10,\r\n\twidth: 30,\r\n\theight: 30,\r\n\tborderRadius: 15,\r\n\tbackgroundColor: \"white\"\r\n}\r\n\"#typeLabel\": {\r\n\tleft: 10,\r\n\twidth: 100\r\n}\r\n\"#numberLabel\": {\r\n\tleft: 10,\r\n\twidth: 100\r\n}\r\n\"#dateLabel\": {\r\n\tleft: 10,\r\n\twidth: 100\r\n}\r\n\"#cvcField\": {\r\n\tright: 10,\r\n\tkeyboardType: Ti.UI.KEYBOARD_TYPE_NUMBER_PAD,\r\n\tpasswordMask: true,\r\n\tmaxLength : 4,\r\n\ttextAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n\thintText: \"CVC\"\r\n}\r\n{code}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-07T21:44:42.000+0000", "updated": "2018-09-07T21:44:42.000+0000" }, { "id": "441673", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Informed customer about that listview suggestion week ago, no reply at all. Will push it again. ", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2018-09-19T01:58:31.000+0000", "updated": "2018-09-19T01:58:31.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }