开发者

List shows black colour

开发者 https://www.devze.com 2023-02-08 02:29 出处:网络
I have a listview to which i attach data using an Array adapter. But when i scroll, i find the edges to be dark.

I have a listview to which i attach data using an Array adapter. But when i scroll, i find the edges to be dark.

开发者_Python百科

Why is this happening and how to stop it. Any help please!!


That is just a hint that there is more data present at the end of the list.

try using

android:cacheColorHint="#00000000"

This will help


If u add TextViews or Different Views to listview apply listview background color to background color of those views .then u did not get the black screen when u scroll the listview


How does the hierarchy of your activity look like? If your UI only contains a ListView then it's easier to just inherit from ListActivity

0

精彩评论

暂无评论...
验证码 换一张
取 消