{ "id": "172453", "key": "TIMOB-26459", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-10-25T14:05:44.000+0000", "created": "2018-10-18T00:52:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "navigationbar", "statusbar", "translucent", "window" ], "versions": [], "issuelinks": [ { "id": "56917", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "171980", "key": "TIMOB-26246", "fields": { "summary": "Android: Handle Android P insetting/display-cutout", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-25T18:40: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" } ], "description": "*Summary:*\r\nAdd support for a translucent top status bar and translucent bottom navigation bar by adding the following constants that can be used by the {{Ti.UI.Window}} \"windowFlags\" property.\r\n* {{Ti.UI.Android.FLAG_TRANSLUCENT_NAVIGATION}}\r\n* {{Ti.UI.Android.FLAG_TRANSLUCENT_STATUS}}\r\n\r\nThe above correspond to the following Android 4.4 Java constants...\r\nhttps://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_TRANSLUCENT_NAVIGATION\r\nhttps://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_TRANSLUCENT_STATUS\r\n\r\n*Example Usage:*\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow({\r\n\textendSafeArea: true,\r\n\ttheme: \"Theme.AppCompat.NoTitleBar\",\r\n\twindowFlags: Ti.UI.Android.FLAG_TRANSLUCENT_STATUS | Ti.UI.Android.FLAG_TRANSLUCENT_NAVIGATION,\r\n\tbackgroundColor: \"white\",\r\n\tborderWidth: \"8dp\",\r\n\tborderColor: \"green\",\r\n});\r\nwindow.open();\r\n{code}\r\n !AndroidTranslucentBars.png|thumbnail! \r\n\r\n*Note 1:*\r\nInternally, Titanium needs to support/apply these flags to allow *Android P* notches to overlap a fullscreen window. Otherwise the app window will be letterboxed between the notches. So, we might as well as expose the window flags constants for convenience... and they can be used on older Android OS versions (4.4 and higher).\r\n\r\n*Note 2:*\r\nAndroid 4.4 only supports a translucent navigation bar when the app is shown in portrait form. It is opaque when landscape. This is a limitation on Google's end.\r\nAndroid 5.0 and newer OS versions support a translucent nav bar for all orientations.\r\n", "attachment": [ { "id": "65732", "filename": "AndroidTranslucentBars.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-18T01:03:57.000+0000", "size": 22519, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Add support for translucent status bar and navigation bar", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1084, "state": "closed", "name": "2018 Sprint 21", "startDate": "2018-10-07T23:32:40.560Z", "endDate": "2018-10-21T23:32:00.000Z", "completeDate": "2018-10-21T23:19:05.460Z", "originBoardId": 114 }, { "id": 1088, "state": "closed", "name": "2018 Sprint 22", "startDate": "2018-10-21T23:20:52.653Z", "endDate": "2018-11-04T23:20:00.000Z", "completeDate": "2018-11-04T23:29:59.423Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "442740", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10383", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-18T03:32:55.000+0000", "updated": "2018-10-18T03:32:55.000+0000" }, { "id": "442942", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*FR Passed*\r\n\r\nWaiting on Jenkins to merge", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2018-10-25T14:05:37.000+0000", "updated": "2018-10-25T14:05:37.000+0000" }, { "id": "442957", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on SDK 7.5.0.v20181025085349.Works as expected.\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\nNode.js\r\n Node.js Version = 8.12.0\r\n npm Version = 6.4.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nStudio\t\t\t =5.1.2.201810080801\r\nTitanium SDK\r\n SDK Version = 7.5.0.v20181025085349\r\nDevice = Samsung s5 Android 6,pixel android 9 \r\nEmulator\t\t = Samsung galaxy s6 android 6,nexus 4.4\r\n{code}", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-10-25T18:40:09.000+0000", "updated": "2018-10-25T18:40:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }