{
"id": "174882",
"key": "TIMOB-27833",
"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": null,
"resolutiondate": null,
"created": "2020-04-04T12:26:28.000+0000",
"priority": null,
"labels": [
"android",
"drawerlayout",
"theme"
],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "amukherjee",
"key": "amukherjee",
"displayName": "Abir Mukherjee",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2020-04-07T01:14:38.000+0000",
"status": {
"description": "The issue is open and ready for the assignee to start work on it.",
"name": "Open",
"id": "1",
"statusCategory": {
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
},
"components": [
{
"id": "10202",
"name": "Android",
"description": "Android Platform"
}
],
"description": "When using a custom theme to change the scrollbar layout it works for the centerView of DrawerLayout but not for the leftView:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar leftView = Ti.UI.createView({ backgroundColor:'red' });\r\nvar centerView = Ti.UI.createView({ backgroundColor:'#000' });\r\n\r\nvar drawer = Ti.UI.Android.createDrawerLayout({\r\n leftView: leftView,\r\n centerView: centerView\r\n});\r\n\r\nvar tableData = [ {title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'},{title: 'text'} ];\r\nvar table = Ti.UI.createTableView({ data: tableData});\r\nvar table2 = Ti.UI.createTableView({ data: tableData});\r\nleftView.add(table);\r\ncenterView.add(table2);\r\n\r\n\r\nwin.addEventListener('open', function(){\r\n var activity = win.activity,\r\n actionBar = activity.actionBar;\r\n\r\n if (actionBar) {\r\n actionBar.displayHomeAsUp = true;\r\n actionBar.onHomeIconItemSelected = function() {\r\n drawer.toggleLeft();\r\n };\r\n }\r\n});\r\n\r\nwin.add(drawer);\r\nwin.open();\r\n{code}\r\n\r\nTheme (app/platform/android/res/values/mytheme.xml):\r\n{code}\r\n\r\n\r\n\t\r\n\r\n{code}\r\n\r\nDrawable (app/platform/android/res/drawable/scroll_bar_vertical.xml):\r\n{code}\r\n\r\n\r\n\t\r\n\t\r\n\t\r\n\r\n{code}\r\n\r\nset the theme in tiapp.xml\r\n{code}\r\n \r\n \r\n\t \r\n \r\n \r\n{code}\r\n\r\nSee attached screenshots: the leftView scrollbar should have the same style as the centerView scrollbar.\r\n\r\nTested: 8.3.1.GA and 9.0.0.GA",
"attachment": [
{
"id": "67318",
"filename": "Screenshot_20200404-142242.png",
"author": {
"name": "michael",
"key": "michael",
"displayName": "Michael Gangolf",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2020-04-04T12:23:49.000+0000",
"size": 32613,
"mimeType": "image/png"
},
{
"id": "67317",
"filename": "Screenshot_20200404-142305.png",
"author": {
"name": "michael",
"key": "michael",
"displayName": "Michael Gangolf",
"active": true,
"timeZone": "Europe/Berlin"
},
"created": "2020-04-04T12:23:49.000+0000",
"size": 31541,
"mimeType": "image/png"
}
],
"flagged": false,
"summary": "Android: Theme not applied to DrawerLayout leftView",
"creator": {
"name": "michael",
"key": "michael",
"displayName": "Michael Gangolf",
"active": true,
"timeZone": "Europe/Berlin"
},
"subtasks": [],
"reporter": {
"name": "michael",
"key": "michael",
"displayName": "Michael Gangolf",
"active": true,
"timeZone": "Europe/Berlin"
},
"environment": null,
"comment": {
"comments": [],
"maxResults": 0,
"total": 0,
"startAt": 0
}
}
}