{ "id": "165754", "key": "AC-4774", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-02-16T20:00:11.000+0000", "created": "2017-02-03T12:46:25.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-17T05:41:03.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "Hello,\r\nI have been trying to the date picker in Android which works perfectly fine, My issue is with the *calendarViewShown* property. I need to use old style Date picker in the all the versions of android, this works as default in android 4 and lower but when we run the app on android 5 and later the default date picker shows the calendar and instead i would want use the old date picker. \r\nFor which i have used the property *calendarViewShown* and as shown in the below pic I'm not getting the expected result.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "attachment": [ { "id": "61438", "filename": "current Result.png", "author": { "name": "ashishseb", "key": "ashishseb", "displayName": "Ashish Sebastian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-03T12:44:52.000+0000", "size": 66721, "mimeType": "image/png" }, { "id": "61437", "filename": "expected Result.png", "author": { "name": "ashishseb", "key": "ashishseb", "displayName": "Ashish Sebastian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-03T12:45:29.000+0000", "size": 53851, "mimeType": "image/png" } ], "flagged": false, "summary": "Android : *calendarViewShown* not working", "creator": { "name": "ashishseb", "key": "ashishseb", "displayName": "Ashish Sebastian", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ashishseb", "key": "ashishseb", "displayName": "Ashish Sebastian", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 4.8.0.201609101003\r\nSDK : 5.5.0 GA and above\r\nOS Type : Android", "comment": { "comments": [ { "id": "406271", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I think this is the native behavior for Android 5+. [~fmerzadyan] can you confirm this?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-03T13:46:45.000+0000", "updated": "2017-02-03T13:46:45.000+0000" }, { "id": "406273", "author": { "name": "ashishseb", "key": "ashishseb", "displayName": "Ashish Sebastian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*@Hans* : this is a default behavior if we do not use this property for Android 5+, but as the docs suggest this property to work and the picker should change to the older style in Android 5+.\r\n[http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-calendarViewShown]", "updateAuthor": { "name": "ashishseb", "key": "ashishseb", "displayName": "Ashish Sebastian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-03T14:03:19.000+0000", "updated": "2017-02-03T14:03:45.000+0000" }, { "id": "406277", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "This is a valid bug. Setting \"calendarViewShown\" false should not view \"calenderView\" in Android 5+. As, \"calenderView\" is default behavior in Android 5+ the docs should mention that. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-03T15:18:45.000+0000", "updated": "2017-02-03T15:18:45.000+0000" }, { "id": "406617", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "[~fmerzadyan], Any thoughts?", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-08T19:24:18.000+0000", "updated": "2017-02-08T19:24:18.000+0000" }, { "id": "406882", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, There are couple of things to consider.\r\n\r\n1. According to the Android docs, https://developer.android.com/reference/android/widget/DatePicker.html#attr_android:calendarViewShown should valid if both calendarViewShown=\"false\" and datePickerMode=\"spinner\" is set, But \r\n{code}\r\n\r\n{code} this does not work. \r\n\r\n2. Do we have \"datePickerMode=\"spinner\"\" for Titanium?\r\n\r\n3. According to our docs http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-property-useSpinner \"useSpinner\" is deprecated since 5.2.1, But this still works {code}\r\n\r\n{code} for the old spinning wheel date picker. Checked on Android 7.0.0 emulator with SDK 6.0.1\r\n\r\n[~hansknoechel], Any thoughts?\r\n\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-13T20:23:08.000+0000", "updated": "2017-02-13T20:33:48.000+0000" }, { "id": "407185", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-16T14:16:22.000+0000", "updated": "2017-02-16T14:16:22.000+0000" }, { "id": "407225", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-02-16T19:59:44.000+0000", "updated": "2017-02-16T19:59:44.000+0000" }, { "id": "407261", "author": { "name": "aakashsharma", "key": "aakashsharma", "displayName": "aakashsharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey , Ashish , finally i resolve this issue , you have to use theme with the picker then u get the older version picker in latest android 5.0 or more.\r\n\r\n\r\n\r\n//********xml code *********\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n\r\npasty that theme in platfrom >custometheme.xml>\r\n//*************theme\r\n\r\n\t\r\n//**************\r\n\r\n \r\n", "updateAuthor": { "name": "aakashsharma", "key": "aakashsharma", "displayName": "aakashsharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-17T05:41:03.000+0000", "updated": "2017-02-17T05:41:03.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }