{ "id": "103020", "key": "TIMOB-11341", "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": [ { "id": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-19T01:20:57.000+0000", "created": "2012-10-10T01:49:20.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "androidbuild", "cb-verified", "core", "insight", "qe-closed-3.2.0", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "30584", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "101022", "key": "TIMOB-10897", "fields": { "summary": "Android: Allow default themes to be set from tiapp.xml", "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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-12-23T20:34:15.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" }, { "id": "10207", "name": "Tooling" } ], "description": "Setting tool-api-version and targetSdkVersion to something about 11 should let us use the device's built-in themes, but apps still show up in the old themes unless we override the themes explicitly. I added the following to the {{tiapp.xml}} file:\r\n\r\n{code}\r\n \r\n \t15\r\n \t\r\n \t\t\r\n \t\r\n \r\n{code}\r\n\r\nHowever, the app still looks old-style on a Nexus 7. For example, menu items are displayed in the options menu, not the action bar, even if showAsAction is set. And for that matter--no action bar.\r\n\r\nTesting with the sample code for Action Items from TIMOB-9910.\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: App build with targetSdkVersion > 11 should use newer themes", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "231175", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think the attribute for the 'uses-sdk' should be 'android:targetSdkVersion' instead of just 'targetSdkVersion'. I tried switching it to that and it works fine for me. Please reopen if there are any other issues.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-13T01:55:48.000+0000", "updated": "2012-12-13T01:55:48.000+0000" }, { "id": "233603", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That works for ordinary windows (since they use the Titanium theme, which should default to the device's default theme).\n\nHowever, windows created with modal: true or any opacity value are hard-coded to the Android Translucent theme, which _doesn't_, include an action bar. To override these, the user has to add entries to tiapp.xml for each of these (and probably create a custom theme that defaults to Translucent in earlier releases, and Holo (or the device default) in later releases. As near as I can tell, we don't actually need the separate translucent theme in newer versions of Android (although I may be mistaken here).", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-08T15:11:29.000+0000", "updated": "2013-01-08T15:11:29.000+0000" }, { "id": "275810", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:20:57.000+0000", "updated": "2013-10-19T01:20:57.000+0000" }, { "id": "284641", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201312142258\nTitanium SDK, build: 3.2.0.v20131216064236\nCLI: 3.2.0-cr3\nAlloy: 1.3.0-cr\n\nAdded the code snippet from the description.\nRan on device using API set to 15 and set to 10.\nAPI15 displayed new theme, API 10 displayed older theme.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-17T01:08:12.000+0000", "updated": "2013-12-17T01:08:12.000+0000" }, { "id": "285626", "author": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "body": "i compiled my app with 3.2 SDK. when opening a date-picker in a modal window i get the very old UI of the date-picker. only when i use date-picker in a normal window i get it in Holo.Light theme\r\n\r\n{code}\r\n\r\n\r\n{code}\r\n\r\nam i missing anything?", "updateAuthor": { "name": "sameeh.harfoush", "key": "sameeh.harfoush", "displayName": "Sameeh Harfoush ", "active": true, "timeZone": "Asia/Beirut" }, "created": "2013-12-23T10:02:32.000+0000", "updated": "2013-12-23T10:02:32.000+0000" }, { "id": "285673", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a theme issue. We need to add some custom themes to the app template.\n\nFor now, here is the workaround:\n1. Create the file /platform/android/res/values/theme.xml:\n{code}\n\n\n\t\n\t\n\n{code}\n2. Create the file /platform/android/res/values-v11/theme.xml:\n{code}\n\n\n\t\n\t\n\n{code}\n3. In tiapp.xml, add\n{code}\n\n \n \n \n \t\n \t\n \n \n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T20:34:15.000+0000", "updated": "2013-12-23T20:34:15.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }