{ "id": "115032", "key": "AC-2486", "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": "2014-01-01T22:32:46.000+0000", "created": "2013-05-28T14:23:33.000+0000", "labels": [ "android", "holo", "ics", "styles", "theme", "tiapp.xml" ], "versions": [], "issuelinks": [ { "id": "34061", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "118099", "key": "TIMOB-14778", "fields": { "summary": "As a developer, I would like an easier way to create a Holo-themed Android app", "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": "Low", "id": "4" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:32.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": "Setting the application manifest to Holo themes make the splash screens not work, doesn't matter where you put it.\r\n\r\n*Steps:*\r\n\r\n1 - Add the manifest part to your tiapp.xml\r\n2 - Use one android visual component like the one on the code bellow\r\n3 - Compile to an android device\r\n\r\n*Adicional notes/Questions:*\r\n1 - Not setting this theme will make that the default theme is always the 2.2 versions theme\r\n\r\n2 - Why there isn't a way to just set the theme on tiapp.xml without using android manifest?\r\n\r\n*Related Q&A*\r\n[Android theme not properly set|http://developer.appcelerator.com/question/152933/android-theme-not-properly-set]\r\n[How do you build your app with Holo theme?|http://developer.appcelerator.com/question/130719/how-do-you-build-your-app-with-holo-theme]\r\n\r\n*Testing code bellow:*\r\n\r\n*app.js*\r\n{code:js|borderStyle=solid}\r\nvar parentView = Ti.UI.createWindow();\r\n\r\n// Create a ProgressBar.\r\nvar aProgressBar = Ti.UI.createProgressBar({\r\n\tmin : 0,\r\n\tmax : 10,\r\n\tvalue : 0,\r\n\twidth : '200dp',\r\n\theight : '70dp',\r\n\tcolor : '#444',\r\n\tmessage : 'Measuring Progress',\r\n\tfont : {fontSize:14, fontWeight:'bold'},\r\n\tstyle : Ti.UI.iPhone.ProgressBarStyle.PLAIN,\r\n\ttop : 60\r\n});\r\n\r\n// Add to the parent view.\r\nparentView.add(aProgressBar);\r\naProgressBar.show();\r\n\r\n// Sample timer to demonstrate ProgressBar functionality.\r\nvar val = 0;\r\nvar interval = setInterval(function() {\r\n\tif (val <= 10) {\r\n\t\taProgressBar.value = val;\r\n\t\taProgressBar.message = 'Progress: ' + val + ' of 10';\r\n\t\tval++;\r\n\t} else {\r\n\t\taProgressBar.message = 'Progress complete!';\r\n\t\tclearInterval(interval);\r\n\t}\r\n}, 500);\r\n\r\nparentView.open();\r\n{code} \r\n\r\n*tiapp.xml*\r\n{code:xml|borderStyle=solid}\r\n.....\r\n \r\n \t\r\n \t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\r\n \t\r\n \r\n...\r\n3.1.0.GA\r\n{code} ", "attachment": [ { "id": "39181", "filename": "ThemeTest.zip", "author": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-05-29T12:13:15.000+0000", "size": 2897433, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android Theme.Holo don't dysplay splash screens", "creator": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "Mac OS / SDK 3.1", "comment": { "comments": [ { "id": "254457", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\n\nWould you mind zipping up the sample project that demonstrates this bug? Following the directions you provided has not been able to display a Holo theme on my device. Hopefully by using an app that you already have configured with a theme we can replicate the issue and come to a resolution more quickly. \n\nThanks for your cooperation,\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-29T00:08:35.000+0000", "updated": "2013-05-29T00:08:35.000+0000" }, { "id": "254528", "author": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "After more and more tests I discovered that I need to use a custom values/theme.xml like this to work:\n\n{code:xml}\n\n\n\t\n\n{code}\n\nThere is one thing that could be done to really improve the way it works, and avoid this kind of problem that is, allow us to just set the theme on tiapp.xml without using android manifest, and custom files, like a normal tag like this:\n\n*Holo.Light*\n\nI'll attach a zip file soon, just need to clean the stuff.", "updateAuthor": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-05-29T12:05:59.000+0000", "updated": "2013-05-29T12:05:59.000+0000" }, { "id": "254530", "author": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "File attached: Working project, with theme Holo.Light set.\r\n\r\nJust to clear a bit here:\r\n\r\n*Problems*\r\n1 - The default Titanium/Android theme is always 2.2 version, eve if you set min/target sdk to 14, wich is actually wrong, thi should be variable using the default device theme.\r\n2 - To workaround this would need to copy the manifest.xml application tag into our tiapp.xml, and change the places where it uses Theme.Titanium to Theme.Holo.Light(as a example), but it won't show splash screens this way.\r\n3 - To workaround problems 1 and 2, we need to have the same structure as in this zip file:\r\n**tiapp.xml, application and activity tag set to custom theme \"@style/MyThemeName\"\r\n**platform/android/res/values/theme.xml setting a custom theme using as parent the android themes Theme.Holo.Light(as a example), and creating an item tag for the splash screen(like in the zip files)\r\n\r\n*Fix needed*\r\nAndroid default theme should be the device default theme, not always the titanium default android 2.2 theme.\r\n\r\n*Improvements needed*\r\nTo force a theme we could have a tiapp.xml tag called where we could set custom/default themes for the application", "updateAuthor": { "name": "cleison.ezoom", "key": "cleison.ezoom", "displayName": "Ezoom Agency", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-05-29T12:13:15.000+0000", "updated": "2013-05-29T12:25:15.000+0000" }, { "id": "254861", "author": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ezoom,\r\n\r\nThank you for your suggestions and insight into theme settings with Titanium. In order to keep tickets organized we would need two new tickets created in the form of \"improvement\" tickets. This is so that we can keep tickets organized and specific for logging purposes. If you would mind creating these two tickets I would be happy to review them and pass them along to engineering for them to fulfill. The tickets should reflect the info you provided in your last comment, specifically, one ticket should read, \"Android default theme should be the device default theme, not always the titanium default android 2.2 theme.\" and the other should be \"To force a theme we could have a tiapp.xml tag called where we could set custom/default themes for the application\" along with any more information in the description. \r\n\r\nThank you for bringing this to our attention,\r\nCarter", "updateAuthor": { "name": "clathrop", "key": "clathrop", "displayName": "Carter Lathrop", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-30T16:27:55.000+0000", "updated": "2013-05-30T16:30:53.000+0000" }, { "id": "265006", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Have you guys created the improvement tickets for this? If so, would you mind to link them against this one?\n", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-08-05T22:16:31.000+0000", "updated": "2013-08-05T22:16:31.000+0000" }, { "id": "286424", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We cannot reproduce the issue with the splash screen and there is already an existing ticket TIMOB-14778 to cover the improvements suggested in this ticket. Please follow along that ticket for further updates.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-01T22:32:30.000+0000", "updated": "2014-01-01T22:32:30.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }