渐变兼容性问题 - ICS默认的颜色比以前的所有Android版本都少

Ind*_*õue 7 android android-4.0-ice-cream-sandwich

2.3.3左,右边的ICS(仿真器). 注意红框内的渐变淡化效果差异.

姜饼(2.3.3)模拟器左,ICS(4.0.3)模拟器右.注意红色框内的渐变淡化效果差异(在单独的窗口中打开以查看完整大小的图像).

主视图背景:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/app_bg"
android:orientation="vertical" >

...

</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

app_bg.xml

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:startColor="#000" android:centerColor="#333"
    android:endColor="#000" android:angle="270" />
</shape>
Run Code Online (Sandbox Code Playgroud)

是什么导致了这个问题?如何解决这个问题,以便ICS渐变看起来像2.3.3版本一样平滑?问题是否仅在模拟器上发生?

Ind*_*õue 0

刚刚在 ICS 4.0.3 设备上验证:这是模拟器唯一的问题