{ "id": "170677", "key": "AC-5471", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-12-30T22:20:47.000+0000", "created": "2017-12-25T09:12:08.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-30T22:20:48.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "The returned error when getCenterView is used is as follows:\r\n\r\n*getCenterView is not a function*\r\n\r\nTitanium version: 6.3.0.GA", "attachment": [ { "id": "63861", "filename": "getCenterViewAndroidDrawerLayout.zip", "author": { "name": "malhajj", "key": "malhajj", "displayName": "Mohamad Alhajj ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-28T16:08:19.000+0000", "size": 9426056, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android DrawerLayout getCenterView method is not working", "creator": { "name": "malhajj", "key": "malhajj", "displayName": "Mohamad Alhajj ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "malhajj", "key": "malhajj", "displayName": "Mohamad Alhajj ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Node.js\r\n ✓ node installed (v5.2.0)\r\n ✓ npm installed (v3.3.12)\r\n\r\nTitanium CLI\r\n ✓ cli bleeding edge (v5.0.14)\r\n\r\nTitanium CLI Dependencies\r\n ✓ adm-zip up-to-date (v0.4.7)\r\n ✓ async up-to-date (v2.1.2)\r\n ✓ colors up-to-date (v1.1.2)\r\n ✓ fields up-to-date (v0.1.24)\r\n ✓ fs-extra up-to-date (v2.1.2)\r\n ✓ humanize up-to-date (v0.0.9)\r\n ✓ longjohn up-to-date (v0.2.11)\r\n ✓ moment up-to-date (v2.16.0)\r\n ✓ node-appc up-to-date (v0.2.41)\r\n ✓ request up-to-date (v2.79.0)\r\n ✓ semver up-to-date (v5.3.0)\r\n ✓ sprintf up-to-date (v0.1.5)\r\n ✓ temp up-to-date (v0.8.3)\r\n ✓ winston up-to-date (v1.1.2)\r\n\r\nTitanium SDK\r\n ✓ latest sdk installed (v6.3.0.GA)\r\n ✓ selected sdk up-to-date (v6.3.0.GA)\r\n\r\nMac OS X Environment\r\n ✓ CLI Tools installed\r\n\r\niOS Environment\r\n ✓ Xcode installed (7.1.1, 8.3.2, 9.0)\r\n ✓ iOS SDK installed (10.3, 11.0, 9.1)\r\n ✓ WWDR cert installed\r\n ✓ developer cert installed (1 found)\r\n ✓ distribution cert installed (2 found)\r\n ✓ dev provisioning installed (8 found)\r\n ✓ dist provisioning installed (15 found)\r\n\r\nAndroid Environment\r\n ✓ sdk installed (/Users/Apple/Library/Android/sdk)\r\n ✓ tools installed (v26.1.1)\r\n ✓ platform tools installed (v26.0.1)\r\n ✓ build tools installed (v26.0.0)\r\n ✓ adb installed /Users/Apple/Library/Android/sdk/platform-tools/adb\r\n ✕ android \"android\" executable not found; please reinstall Android SDK\r\n ✓ emulator installed /Users/Apple/Library/Android/sdk/tools/emulator\r\n ✓ mksdcard installed /Users/Apple/Library/Android/sdk/tools/mksdcard\r\n ✓ zipalign installed /Users/Apple/Library/Android/sdk/build-tools/26.0.0/zipalign\r\n ✓ aapt installed /Users/Apple/Library/Android/sdk/build-tools/26.0.0/aapt\r\n ✓ aidl installed /Users/Apple/Library/Android/sdk/build-tools/26.0.0/aidl\r\n ✓ targets installed (13 found)\r\n ! avds no avds found\r\n ✓ ndk installed (11.2.2725575)\r\n ✓ ndk-build installed (/Users/Apple/Library/Android/ndk/ndk-build)\r\n\r\nJava Development Kit\r\n ✓ jdk installed (v1.8.0)\r\n ✓ java installed /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java\r\n ✓ javac installed /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/javac\r\n ✓ keytool installed /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/keytool\r\n ✓ jarsigner installed /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/jarsigner\r\n\r\nIntel® Hardware Accelerated Execution Manager (HAXM)\r\n ✓ compatible\r\n ✓ installed\r\n\r\nNetwork\r\n ✓ online\r\n - no proxy server configured\r\n ✓ Network connection test\r\n ✓ Java-based connection test\r\n\r\nDirectory Permissions\r\n ✓ home directory\r\n ✓ titanium config directory\r\n ✓ titanium sdk install directory\r\n ✓ workspace directory\r\n ✓ temp directory", "comment": { "comments": [ { "id": "432550", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~malhajj], \r\nThanks for sharing with us. Please create a full reproducible test code and provide here for us to test the issue. Also, provide detail affected environment. \r\nThanks.", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-12-26T09:12:38.000+0000", "updated": "2017-12-26T09:12:38.000+0000" }, { "id": "432583", "author": { "name": "malhajj", "key": "malhajj", "displayName": "Mohamad Alhajj ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello Mostafizur,\r\n\r\nI've updated the Environment field with the details about the affected environment and attached a test scenario.\r\n\r\nRegards", "updateAuthor": { "name": "malhajj", "key": "malhajj", "displayName": "Mohamad Alhajj ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-28T16:10:29.000+0000", "updated": "2017-12-28T16:10:29.000+0000" }, { "id": "432588", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Why are you calling \"androidDrawer.centerView\" and \"androidDrawer.getCenterView()\" in console log? You already create them in drawer creation. \"androidDrawer.getCenterView()\" is when you don't define the certerview in drawer creation and you assign to it in drawer by the event listener. Something like below.\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar leftView = Ti.UI.createView({ backgroundColor:'red' });\r\nvar centerView = Ti.UI.createView({ backgroundColor:'yellow' });\r\nvar rightView = Ti.UI.createView({ backgroundColor:'orange' });\r\n\r\nvar drawer = Ti.UI.Android.createDrawerLayout({\r\n leftView: leftView,\r\n rightView: rightView\r\n});\r\nvar btn = Ti.UI.createButton({ title: 'RIGHT' });\r\n\r\nbtn.addEventListener('click', function() {\r\n drawer.toggleRight();\r\n});\r\n\r\ncenterView.add(btn);\r\n\r\nwin.addEventListener('open', function(){\r\n var activity = win.getActivity(),\r\n actionBar = activity.getActionBar();\r\n \r\n\tdrawer.getCenterView(centerView);\r\n if (actionBar) {\r\n actionBar.displayHomeAsUp = true;\r\n actionBar.onHomeIconItemSelected = function() {\r\n drawer.toggleLeft();\r\n };\r\n }\r\n});\r\n\r\nwin.add(drawer);\r\nwin.open();\r\n{code}\r\n\r\nThis issue is invalid. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-12-28T23:02:03.000+0000", "updated": "2017-12-28T23:02:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }