{ "id": "174785", "key": "AC-6499", "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": "2020-04-08T02:21:19.000+0000", "created": "2020-03-04T07:59:52.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [ { "id": "58307", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174895", "key": "TIMOB-27837", "fields": { "summary": "Android: Custom theme ignored by modal/translucent windows as of 9.0.0", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-04-08T02:21:19.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": "Material them and custom button not working in SDK 9. Worked in 8.2.x\r\nWith the mytheme.xml, the buttons are supposed to be not with the standard grey rectangle and text should not in caps. \r\n\r\n{code:xml}\r\n\r\n\t\r\n\t\r\n\r\n{code}", "attachment": [ { "id": "67292", "filename": "Android-kitchensink.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-07T04:30:25.000+0000", "size": 90461, "mimeType": "image/png" } ], "flagged": false, "summary": "Android Material Theme not working in SDK 9", "creator": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 9", "comment": { "comments": [ { "id": "454551", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is likely an issue in your \"AndroidManifest.xml\" settings. We've switched to Google's newest gradle build tools, which is much more strict regarding your XML settings. For example, you need to make sure you have {{@style/}} prefixed in front of your theme name when referencing it in XML.\r\n\r\nOur \"kitchensink-v2\" sample app successfully overrides the theme in Titanium 9.0.0. Note that we reference it via {{android:theme=\"@style/kitchensink\"}} in the \"tiapp.xml\" file where \"kitchensink\" is our custom theme/style.\r\nhttps://github.com/appcelerator/kitchensink-v2/blob/master/tiapp.xml\r\nhttps://github.com/appcelerator/kitchensink-v2/blob/master/app/platform/android/res/values/custom_theme.xml\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-04T20:01:06.000+0000", "updated": "2020-03-04T20:01:06.000+0000" }, { "id": "454568", "author": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I took the kitchensink theme and works fine. If I added the except the customButton section, that is the part that is not functioning.\r\n.\r\n.\r\n\t@style/customButton\r\n.\r\n.\r\n\t\r\n\r\n\r\n\r\nI also tried to modify the last section to specify android, still no luck\r\n\t\r\n\r\n\r\n", "updateAuthor": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-06T06:20:31.000+0000", "updated": "2020-03-06T06:20:31.000+0000" }, { "id": "454601", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This works for me...\r\n{code:xml}\r\n\r\n\r\n\t\r\n\t\r\n\r\n{code}\r\n\r\nHere is a screenshot of it working in kitchensink-v2.\r\n !Android-kitchensink.png|thumbnail! \r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-07T04:31:34.000+0000", "updated": "2020-03-07T04:31:34.000+0000" }, { "id": "454602", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think it's an issue with your leading \"android:\" in...\r\n{code:xml}\r\n@style/customButton\r\n{code}\r\n\r\nThis below works when I tested it on Android 4.4 and 9.0. My understanding is because the theme comes from Google's AndroidX library (or in the past the Support library) instead of the Android system library.\r\n{code:xml}\r\n@style/customButton\r\n{code}\r\n\r\nBut I suppose if you're really paranoid, you can just define both. It won't hurt anything. :)\r\n{code:xml}\r\n@style/customButton\r\n@style/customButton\r\n{code}\r\nhttps://stackoverflow.com/a/31359459\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-07T04:50:16.000+0000", "updated": "2020-03-07T04:50:16.000+0000" }, { "id": "454604", "author": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No luck but I tested on real Android phones.\r\n\r\nNexus 5X Android 8.1.0\r\nGalaxy Note3 Android 5.0\r\n\r\nFor both devices, when I just switched back to 8.2.0GA, the lower caps showed up properly! A bit frustrating.\r\n\r\n\r\n", "updateAuthor": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-09T03:38:13.000+0000", "updated": "2020-03-09T03:38:13.000+0000" }, { "id": "454629", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Without any more information, we can't help you. Especially since this is working for us.\r\n\r\nDo you see any warning or errors in the build log?", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-10T00:02:41.000+0000", "updated": "2020-03-10T00:02:41.000+0000" }, { "id": "454972", "author": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I final stumbled into how it can be reproduced.\r\nIt has to do with how the controller is opened in modal or not.\r\n\r\nAlloy.createController('xxxxxxxxx').getView().open({modal:true});\r\n---> All text in button becomes all capital letters\r\n\r\nAlloy.createController('xxxxxxxxx').getView().open({modal:false});\r\n---> All text in button showed up as what were typed in code\r\n\r\n\r\nSo, the problem is pertained to when windows are opened as modal.\r\n\r\n", "updateAuthor": { "name": "tlau", "key": "tlau", "displayName": "Tony Lau", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-05T23:02:02.000+0000", "updated": "2020-04-05T23:37:10.000+0000" }, { "id": "454999", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay. I'm able to reproduce it now. Thanks for isolating it.\r\nA bug has been introduced into Titanium 9.0.0. Your custom style is being applied to the wrong translucent activity theme internally.\r\n\r\nIf you need a solution now, then you can work-around it in 1 of 2 ways.\r\n\r\n*Work-Around 1:*\r\nSet the \"theme\" property to the below string when creating a window in code like this...\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({\r\n\tmodal: true,\r\n\ttheme: \"Theme.AppCompat.Translucent\",\r\n});\r\n{code}\r\n\r\n*Work-Around 2:*\r\nSet the theme of the \"TiTranslucentActivity\" like the below...\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\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{code}\r\n\r\nNote that the above 2 solutions are temporary, because the translucent activity theme is supposed to use \"Theme.AppCompat.Translucent\", not \"Theme.AppCompat.Translucent\" (it's currently backwards in 9.0.0). So, the above won't work in older Titanium versions... or future versions. We'll see about addressing it in 9.0.1.\r\n\r\nThanks for reporting this issue.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-07T03:35:17.000+0000", "updated": "2020-04-07T03:35:43.000+0000" }, { "id": "455015", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've written a ticket that better clarifies the issue here: [TIMOB-27837]\r\n\r\nI'm going to close this ticket in favor of the above one. We've scheduled it to be fixed in Titanium 9.0.1. Thanks for reporting this issue.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-04-08T02:21:07.000+0000", "updated": "2020-04-08T02:21:07.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }