开发者

Theme issue on an ListActivity

开发者 https://www.devze.com 2023-03-27 08:58 出处:网络
I have a ListActivity on wich I apply a light theme using the manifest. The theme is defined as follow

I have a ListActivity on wich I apply a light theme using the manifest.

The theme is defined as follow

    <style
    name="Theme.Light"
    parent="android:Theme"
>
    <item
        name="android:windowBackground"
    >@android:color/background_light</item>
</st开发者_运维技巧yle>

The idea is to make the ListActivity white instaid of the default black color.

The list is showing white as expected but it turn black as soon as I scroll it. It turn back white when I stop scrolling.

Thanks


This should be what you're looking for:

http://developer.android.com/resources/articles/listview-backgrounds.html

0

精彩评论

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