The answers above will work, but it is likely that when you scroll through the ViewView list, it will be darkened, as in this case: the problem with the android list with transparent cells
To solve this problem, you can use cacheColorHint as described above, but if you add ListView dynamically (from code, not xml), then this will not work. You are forced to declare a ListView in XML, dunno if this is an error or something else.
XMight Nov 21 '11 at 16:38 2011-11-21 16:38
source share