{ "id": "152308", "key": "TIMOB-19780", "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": "2015-10-28T17:32:12.000+0000", "created": "2015-10-23T20:58:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.1.0", "regression" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-10-28T17:32:17.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": "*Note: This is a regression but don't know when this broke. I went back till SDK 4.1.1.GA & could still see the issue.*\r\n\r\nh5.Steps To Reproduce:\r\n1. Use the following code in your app.js :\r\n{code}\r\nvar win = Ti.UI.createWindow({});\r\n\r\nvar but = Ti.UI.createButton({\r\n\ttitle:\"lokesh\"\r\n});\r\n\r\nwin.add(but);\r\nwin.open();\r\n{code}\r\n2. Build for android device.\r\n3. After the app launches check the button title.\r\n\r\nh5.Actual Results:\r\n1. The button title stays uppercased even if the text is in lowercase in the app.js.\r\nNOTE: attached the screenshot for android & IOS for this issue.\r\n\r\nh5.Expected Results:\r\n1. The button title should respect the case in the code. \r\n", "attachment": [ { "id": "57129", "filename": "Android_button_case.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-23T20:58:43.000+0000", "size": 41816, "mimeType": "image/png" }, { "id": "57128", "filename": "IOS_button_title.png", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-23T20:58:46.000+0000", "size": 24331, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Button title stays uppercased even if the text is in lowercase in the app.js", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 4.4.0.201510192227\r\nTi SDK : 5.1.0.v20151022152020\r\nTi CLI : 5.0.5\r\nAlloy : 1.7.18\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.1-6\r\nAppc CLI : 5.1.0-38\r\nNode: v0.10.37\r\nNexus 5 - Android 6.0", "comment": { "comments": [ { "id": "367922", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "Button text is automatically changed to ALLCAPS in material design. See https://www.google.com/design/spec/components/buttons.html#\r\nSo the behaviour is according to the Android version the device is running. But in case you want to override this - provide your own style in Appc Studio. You can try something like this:\r\n\r\nIn platform/android/res/values/mytheme.xml\r\n{code}\r\n\r\n\r\n \r\n \r\n\r\n \r\n\r\n{code}\r\n\r\nAnd use this theme in tiapp.xml as described here http://docs.appcelerator.com/platform/latest/#!/guide/Android_Themes\r\n", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-27T03:49:12.000+0000", "updated": "2015-10-27T03:49:12.000+0000" }, { "id": "368027", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~sriks], With the custom theme the button title is lower cased, that's great. However, when I run the app without the custom theme on android 4.4.4 (which does not have material theme) I still see the button title as uppercased. Is this expected with android versions below 5.0 ?", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-27T21:39:02.000+0000", "updated": "2015-10-27T21:39:02.000+0000" }, { "id": "368083", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary] Yes. Thats the expected behaviour because Android TiSDK uses AppCompact with Material theme support. So any widgets are automatically styled as material design. ", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-28T05:32:13.000+0000", "updated": "2015-10-28T05:32:13.000+0000" }, { "id": "368140", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssombhatla], thanks for the clarification.\r\nResolving this as invalid from above comments as this is an expected behaviour in material theme & when using appcompat with TiSDK.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-28T17:31:54.000+0000", "updated": "2015-10-28T17:31:54.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }