グラデーション互換性の問題 - 、ICS(4.0.3)エミュレータの右から左のAndroid
ジンジャーブレッド(2.3.3)エミュレータのすべての以前のバージョンよりも少ない色にICSのデフォルト値。赤い枠の中のグラデーションのフェード効果の違いに注目してください(フルサイズの画像を見るには別のウィンドウで開きます)。
MAINVIEW背景:
<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>
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>
?これを修正する方法は、ICSグラデーションが2.3.3バージョンと同じように滑らかに見えるようにすることです。問題はエミュレータでのみ発生しますか?
あなたのホストディスプレイ(つまり、エミュレータが表示されている画面)は32bppですか? –
どういう意味ですか?両方のエミュレータは、スクリーンショットが撮られた時点で同じモニタで動作しています。 –
私の間違いは、2.3画面もエミュレートされていることに気付かなかった。 –