{ "id": "107433", "key": "AC-2009", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-12-30T05:22:37.000+0000", "created": "2013-01-07T07:27:06.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:57.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When we set the following in AndroidManifest.xml, the cursor does not show up in TextFields:\r\n{code}{code}\r\n\r\nIt seems that when the targetSdkVersion is set to 16, the cursor is not showing up.", "attachment": [], "flagged": false, "summary": "Android: Cursor not showing up when clicked in Text fields", "creator": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vinothbabu", "key": "vinothbabu", "displayName": "Vinothbabu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 4.1, API Level 16\r\nTi SDK 3.0 GA", "comment": { "comments": [ { "id": "241949", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hello,\r\n\r\nCan you provide a sample code, as well as some more information on the device you are testing with? I did try on my side, and the cursor seems to be working fine.\r\n\r\nThank you", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-13T12:42:39.000+0000", "updated": "2013-03-13T12:42:39.000+0000" }, { "id": "283021", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi Vinoth,\n\nWe have not heard back from you since you posted the issue. Not sure if this is still throwing error in your app. If so, please send us a test case so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it. \n\nThanks,\nShak", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-07T02:32:25.000+0000", "updated": "2013-12-07T02:32:25.000+0000" }, { "id": "283158", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "We tested this issue with the test code below. We can’t reproduce this issue with Titanium SDK 3.1.3GA. Please test this issue using the latest release and let us know your feedback. If you continue to get the reported error, please post us your test case and steps to reproduce. We will revisit it again.\r\n\r\n\r\n \r\nh5. Testing Environment:\r\nTi CLI 3.1.2\r\nTitanium SDK:3.0.2 and later\r\nAndroid SDK: 4.1 and later\r\n \r\nh5. Steps to Reproduce:\r\n1.create a simple project.\r\n2.Update this code in app.js and tiapp.xml\r\n3.Then run this with testing environment.\r\n4. Click on textfields\r\n5. Cursor will shown well as we expected \r\n \r\n \r\n h5. Test Case\r\n\r\napp.js\r\n {code}\r\nvar win = Titanium.UI.createWindow({\r\n\tlayout : 'vertical',\r\n\ttitle : 'TextField Test',\r\n\tnavBarHidden : false\r\n});\r\n \r\n \r\nvar text1 = Ti.UI.createTextField({\r\n\theight : Ti.UI.SIZE,\r\n\ttop : 10,\r\n\tleft : 10,\r\n\twidth : Ti.UI.FILL,\r\n\thintText : 'This is textField1',\r\n\tkeyboardType : Ti.UI.KEYBOARD_DEFAULT,\r\n\treturnKeyType : Ti.UI.RETURNKEY_DEFAULT,\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n \r\n \r\ntext1.addEventListener('return', function(e) {\r\n\ttext1.blur();\r\n\talert('Input was: ' + text1.value);\r\n});\r\n \r\n \r\nwin.add(text1);\r\n \r\n \r\nvar text2 = Ti.UI.createTextField({\r\n\theight : Ti.UI.SIZE,\r\n\ttop : 10,\r\n\tleft : 10,\r\n\twidth : Ti.UI.FILL,\r\n\thintText : 'This is textField2',\r\n\tkeyboardType : Ti.UI.KEYBOARD_DEFAULT,\r\n\treturnKeyType : Ti.UI.RETURNKEY_DEFAULT,\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n \r\ntext2.addEventListener('return', function(e) {\r\n\ttext2.blur();\r\n\talert('Input was: ' + text2.value);\r\n});\r\n \r\nwin.add(text2);\r\n \r\nvar text3 = Ti.UI.createTextField({\r\n\theight : Ti.UI.SIZE,\r\n\ttop : 10,\r\n\tleft : 10,\r\n\twidth : Ti.UI.FILL,\r\n\thintText : 'This is textField3',\r\n\tkeyboardType : Ti.UI.KEYBOARD_DEFAULT,\r\n\treturnKeyType : Ti.UI.RETURNKEY_DEFAULT,\r\n\tborderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n});\r\n \r\ntext3.addEventListener('return', function(e) {\r\n\ttext3.blur();\r\n\talert('Input was: ' + text3.value);\r\n});\r\n \r\nwin.add(text3);\r\n \r\nwin.open();\r\n\r\n{code}\r\n\r\n\r\ntiapp.xml\r\n\r\n{code}\r\n\r\n 16\r\n \r\n \r\n \r\n \r\n{code}\r\n", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-09T05:37:51.000+0000", "updated": "2013-12-17T18:54:13.000+0000" }, { "id": "286073", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is not reproducible in the latest SDK. Posted a sample that works.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-28T07:09:51.000+0000", "updated": "2013-12-28T07:09:51.000+0000" }, { "id": "286341", "author": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "body": "Please, reproduce this ticket on Ti SDK 3.2.0. It's not working for me.\n\nh5. Environment:\n\nTitanium Studio, build: 3.2.0.201312191547\nTitanium SDK version 3.2.0.GA\nCLI version 3.2.0\nAloy 1.3.0\nMac OSX: 10.9.1\nDevice: HTC One S, Android 4.1.1\n\nh5. Step to Reproduce:\n\n1. Create a simple project\n2. Open file ApplicationWindow.js for Android\n3. Update code\n4. Run app\n5. Click on text field\n6. Cursor not show up\n\nh5. Test case:\n\nApplicationWindow.js\n\n{code}\n//Application Window Component Constructor\nfunction ApplicationWindow() {\n\t//load component dependencies\n\tvar FirstView = require('ui/common/FirstView');\n\n\t//create component instance\n\tvar self = Ti.UI.createWindow({\n\t\tbackgroundColor:'#ffffff',\n\t\tnavBarHidden:true,\n\t\texitOnClose:true\n\t});\n\n\t//construct UI\n\tvar firstView = new FirstView();\n\tself.add(firstView);\n\n\t\n\tvar txt = Ti.UI.createTextField({\n\t\ttop: 100,\n\t\tleft: 100,\n\t\twidth: 120,\n\t\theight: 40,\n\t\tcolor: 'red',\n\t\tborderWidth: 1,\n\t\tborderColor: 'blue'\t\n\t});\n\t\n\tfirstView.add(txt);\n\t\n\treturn self;\n}\n\n//make constructor function the public component interface\nmodule.exports = ApplicationWindow;\n{code}\n\n", "updateAuthor": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2013-12-31T06:36:44.000+0000", "updated": "2013-12-31T06:36:44.000+0000" }, { "id": "286683", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~tak8xx] We can reopen and investigate this ticket further if you can provide a simple and complete test case. You have provided a code snippet that refers to other code (ui/common/FirstView) so we can not use your code and we have not been able to reproduce using our own test.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-05T22:25:38.000+0000", "updated": "2014-01-05T22:25:38.000+0000" }, { "id": "286702", "author": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "body": "@Ritu Agrawal, my complete test case.\n\n1. Create new simple project\n2. Put code in app.js\n\n{code}\nvar window = Ti.UI.createWindow({\n\tbackgroundColor:'#ffffff',\n\tnavBarHidden:true,\n\texitOnClose:true\n}),\nview = Ti.UI.createView(),\ntextField = Ti.UI.createTextField({\n top: 100,\n left: 100,\n width: 120,\n height: 40,\n color: 'red',\n borderWidth: 1,\n borderColor: 'blue' \n});\n\nview.add(textField);\nwindow.add(view);\nwindow.open();\n\n{code}", "updateAuthor": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2014-01-06T03:02:17.000+0000", "updated": "2014-01-06T03:02:17.000+0000" }, { "id": "286733", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~tak8xx] I tested your simple test on my Samsung Galaxy Nexus (4.2.2) device and I observed the same behavior irrespective of the targetSdkVersion I set in tiapp.xml file. An interesting behavior I observed is that the cursor did not show up in the portrait mode but it did show up in the landscape mode. Did you notice the different behavior in portrait and landscape modes as well?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T06:41:05.000+0000", "updated": "2014-01-06T06:41:05.000+0000" }, { "id": "286737", "author": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "body": "@Ritu Agrawal, yes I see.\n\nThe devices that I tested:\n- HTC One S, Android 4.1.1 => Working on landscape that not portrait mode\n- Samsung GT I9003, Android 2.3.5 => Working fine for me", "updateAuthor": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2014-01-06T07:12:23.000+0000", "updated": "2014-01-06T07:12:23.000+0000" }, { "id": "286768", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~tak8xx] This issue appears to be a duplicate of TIMOB-13567 and related to default Holo theme. Can you please review the comments posted in TIMOB-13567 ticket and let me know if it resolves your issue?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T16:54:31.000+0000", "updated": "2014-01-06T16:54:31.000+0000" }, { "id": "287190", "author": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "body": "Thank @Ritu Agrawal for support, I think if using custom theme as your suggestion is ok. But my project is not using Alloy, are there other solutions?", "updateAuthor": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2014-01-08T09:38:44.000+0000", "updated": "2014-01-08T09:38:44.000+0000" }, { "id": "287194", "author": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "body": "Oh sorry, still can apply custom theme into my project that not need to use Alloy. I applied successfully. Thanks again.", "updateAuthor": { "name": "tak8xx", "key": "tak8xx", "displayName": "Charles Tran", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2014-01-08T10:33:56.000+0000", "updated": "2014-01-08T10:33:56.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }