[TIMOB-20432] ListItems are getting transparent with scrolling
| GitHub Issue | n/a |
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-03-16T03:21:07.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | android, listView, listitem, listsection |
| Reporter | Prafull Bansode |
| Assignee | Hieu Pham |
| Created | 2016-02-14T19:16:37.000+0000 |
| Updated | 2017-03-24T21:12:45.000+0000 |
Description
When I scroll down the list, the last item's background colour is getting vanished & displaying it as transparent. When I scroll up, same thing happens with top most list items. If I rapidly scrolls up & down, most of the list item's background colour is converting into transparent. I am attaching the demo project with this. Please review it.
Attachments
Hello, I tried to reproduce the issue as described. I wasn't able to reproduce the issue. I am testing the project provided. I have tested with SDK 5.1.2.GA in Nexus 5X emulator (Android 6.0.0). I did not observe any change of the listview item when I scroll up and down in the Listview. See the attachment when I scroll down and Up. Please provide screen shots of what you are seeing. Thanks.
Thanks for the attention. I am attaching the screenshots which are taken on Genymotion : Google Nexus5 5.0.0.
Hello, Can you try testing on a different emulator besides Google Nexus5 or in an actual device maybe. I am not able to regenerate the issue. Reply with your findings. Thanks.
I had tried on the available actual devices as well. Following is the list of devices & their respective os versions: 1. Samsung s3 (4.3) 2. Samsung s4 (5.0.1) 3. LG Nexus5 (6.0.1)
Any updates, please??
Hello, Tested the issue you reported. Using same background image for all rows (templateContainerView) can be a workaround of this problem. If I rapidly scrolls up & down, list item's background is displaying as expected. *Testing Environment:* Appcelerator Command-Line Interface, version 5.2.0 Titanium SDK Version:5.1.2GA Platform: Nexus 7(device), Emulator: PREVIEW - Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 Appcelerator Studio, build: 4.5.0.201602170821 Mac OS X,Version = OSX EI Capitan 10.11.1 *Test code:* index.js
*Test Result:* [screenshot1](http://postimg.org/image/7ls28dnsv/) [screenshot2](http://postimg.org/image/bougzvtdh/) [scrrenshot3](http://postimg.org/image/5oe1r0rw1/http:/)var menuJSON = { "data": [ { "icon": "/images/dashboard/Android_robot1.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png", }, { "icon": "/images/dashboard/Android_robot2.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png", }, { "icon": "/images/dashboard/Android_robot3.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png", }, { "icon": "/images/dashboard/Android_robot4.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png", }, { "icon": "/images/dashboard/Android_robot5.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png" }, { "icon": "/images/dashboard/Android_robot6.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png" }, { "icon": "/images/dashboard/Android_robot7.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png" }, { "icon": "/images/dashboard/Android_robot8.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png", }, { "icon": "/images/dashboard/Android_robot5.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png" }, { "icon": "/images/dashboard/Android_robot6.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png" }, { "icon": "/images/dashboard/Android_robot7.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png" }, { "icon": "/images/dashboard/Android_robot8.png", // "backgroundImage": "/images/dashboard/Android-logo-wordmark1.png", } ] }; init(menuJSON); function init(menuJSON) { var array = []; for (var i = 0; i < menuJSON.data.length; i++) { var layoutJSON = { template : "menuBlocksListTemplate", properties : { itemId : i, //height : "88.8dp" }, iconImage : { image : menuJSON.data[i].icon, top : "25dp" }, templateContainerView : { backgroundImage: "/images/dashboard/Android-logo-wordmark1.png", backgroundColor : 'white', //height : auto } }; array.push(layoutJSON); } console.log(">>>>>>>", array); $.menuBlocksListSection.setItems(array); } $.index.open();Hi, Tested this issue with latest sdk 5.2.0.GA and experienced the same behavior on android devices. This a valid bug for actual android devices. Please find the attached screenshot. *Test Environment*
Thanksmaster PR: https://github.com/appcelerator/titanium_mobile/pull/7846
PR Merged.
Closing ticket as fixed with reference to previous comments.