{ "id": "169438", "key": "AC-5136", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-08-13T23:37:19.000+0000", "created": "2017-08-11T11:18:38.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-13T23:37:20.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": [], "description": "Hi\r\n\r\ni am trying to add scrollview inisde listview template , this scrollview has 1 child ( imageview ) i want to show the image with its good deminsions not bad scale , but the scrollview is not showing at all , when i use normal view its show but scrollview not showing ?\r\n\r\n\r\n{code:java}\r\nvar basketProductTempalte = {\r\n childTemplates: [{ type \t : 'Ti.UI.View', \r\n\t\t\t\t \t\t\t bindId\t \t : 'parent', \r\n\t\t\t\t \t\t\t properties : { \r\n\t\t\t\t \t\t\t\t\t\t\t width : Ti.UI.SIZE,\r\n\t\t\t\t \t\t\t\t\t\t\t height : Ti.UI.SIZE, \r\n\t\t\t\t \t\t \t\t\t\t\t },\r\n\t\t\t\t \t\t\t childTemplates : [{type \t : 'Ti.UI.View',\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t bindId\t : 'freeparent', \r\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t properties : { width : Ti.UI.FILL,\r\n\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\theight : Ti.UI.SIZE, \r\n\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t right : 10,\r\n\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t left : 10,\r\n\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t top\t : 10,\r\n\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t bottom : 10,\r\n\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t backgroundColor : \"white\"\r\n\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t\t },\r\n\t\t\t\t\t\t\t\t \t\t\t\t childTemplates : [{type \t: 'Ti.UI.View',\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t bindId\t : 'vparent', \r\n\t\t\t\t\t\t\t\t\t\t\t\t \t \t\t\t\t\t\t\t properties : { \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t width : Ti.UI.SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t height : Ti.UI.SIZE, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t top\t\t : 0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t layout : 'vertical',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t backgroundColor : \"pink\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t },\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t childTemplates : [{type \t : 'Ti.UI.View',\r\n\t\t\t\t\t\t\t\t\t\t\t\t \t \t\t\t\t\t\t\t \t\t\t\t\t\t\t properties : { width : Ti.UI.FILL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t height : Alloy.Globals.views.getScreenHeight() * 0.25, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\ttop\t\t : 0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t layout : 'horizontal',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t backgroundColor : \"red\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t },\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\tchildTemplates : [{type \t: 'Ti.UI.ScrollView',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t bindId: 'scrollView',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t \t\t\t\t\t\tproperties : { width \t\t\t \t : \"20%\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t height \t\t\t\t : Ti.UI.FILL , \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t top\t\t\t\t\t\t : 0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t contentWidth \t\t : Ti.UI.FILL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t contentHeight\t\t : Ti.UI.SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t scrollingEnabled : false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t backgroundColor : \"green\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\tchildTemplates : [{type \t: 'Ti.UI.ImageView',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbindId\t: 'image',\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tproperties : { width \t\t\t \t: Ti.UI.SIZE,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t height \t\t\t\t: Ti.UI.FILL , \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t image\t\t\t\t\t: \"\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t top : 0 , \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t left : 0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t backgroundColor : \"black\",\r\n\t\t\t\t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t\t\t\tchildTemplates\t:[\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t]}//end of information text handler\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t]}//End of horizontal parent product details\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t,{type \t: 'Ti.UI.View',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t bindId\t : 'hbuttonparent',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t properties : { width : Ti.UI.FILL,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t height : 50, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t top\t\t : 0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t layout : 'horizontal'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t\t\t },\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\tchildTemplates : [\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t]}//end of bottom horizontal parent action buttons\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t]}//end vParent\r\n\t\t\t\t\t\t\t\t \t\t\t\t ]//end free parent\t\t\t\t\t \t\t \r\n\t\t\t\t \t\t\t\t\t }]//end parent \t\r\n\t\t\t\t }]//end childTempaltes\r\n};\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Ti.UI.ScrollView is not showing inside Listview template", "creator": { "name": "jackSparrow", "key": "jacksparrow", "displayName": "jack sparrow", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jackSparrow", "key": "jacksparrow", "displayName": "jack sparrow", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "426580", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~jackSparrow],\r\n\r\nIt's not a bug. Item templates only support the following view classes:\r\n\r\nTitanium.UI.ActivityIndicator\r\nTitanium.UI.Button\r\nTitanium.UI.ImageView\r\nTitanium.UI.Label\r\nTitanium.UI.ProgressBar\r\nTitanium.UI.Slider\r\nTitanium.UI.Switch\r\nTitanium.UI.TextArea\r\nTitanium.UI.TextField\r\n\r\nPlease take a look following doc links\r\n- http://docs.appcelerator.com/platform/latest/#!/guide/ListViews-section-src-37521650_ListViews-ItemTemplate\r\n\r\nHope this helps", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-08-12T04:14:40.000+0000", "updated": "2017-08-12T04:14:40.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }