冰淇淋三明治; android:windowBackground行为

时间:2011-11-29 15:43:34

标签: themes android-4.0-ice-cream-sandwich theming

我正在ICS上测试我的Android 2.2应用程序。它适用于ICS,但我有一个奇怪的问题。

我在我的应用程序中使用自定义主题,我使用android:windowBackground属性来设置背景图像。它在Android 2.2-2.3设备上很好地显示,但在ICS上它增加了某种奇怪的白色混合发光效果。只有在我设置了android:windowBackground属性时才会发生这种情况。

这是我使用的windowBackground布局的内容;

    <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/tv_big"
    android:tileMode="disabled"
    android:gravity="center|top" />

如果我没有设置android:windowBackground问题就消失了,我的应用程序渲染得很好。我无法截取问题的截图,因为截图上的效果不可见。

有没有人遇到过这个问题?如果是这样,你做了什么?

1 个答案:

答案 0 :(得分:0)

您是否在其他设备上测试过? 也许,dpi更低或更高的模拟器? 如果它没有在ScreenShot上显示,则可能是屏幕上的内容。