Android: ListView xml layout not showing background image when scrolled

android, background-image, listitem, listview, scroll

Solution

- Use the attribute `android:cacheColorHint="#000000"` in `ListView` Tag

Regarding make `TextView's` color black or white, you can refer here to make a custom `TextView` for your `ListView` row, The extra work you have to do is just add another attribut inside `TextView` tag like this

`android:textColor="#FFF" //or #FFFFFF for white`

Problem

I have an Activity with a ListView, I set the background image to the view programatically. When I scroll down my list, the background image turns to white ( because my theme is Theme.Light.NoTitleBar). - How can I make it scroll with the blue background intact? - If the above point works, how can I change the text color of ListView to white instead of black? Normal ListView Scrolling ListView Pressing ListView item

Original source

Related problems