-1

PreferenceActivityのWindowBackgroundを設定しました。

2.3.3を使用すると、背景画像が正しく表示されますが、スクロールすると、元のテーマが前面に表示されます。私の場合、背景は白です。

私のマニフェストファイル:

 <activity android:name=".Activity_Settings" android:screenOrientation="portrait" android:theme="@style/PreferencesTheme"/>

私のスタイル:

<style name="PreferencesTheme">   
         <item name="android:windowBackground">@layout/repeat</item> 
</style> 

iamスクロール中に背景が元のテーマに変わる理由を誰かに教えてもらえますか?

よろしくヤニック

PS:Android 4.0では、すべて正常に動作します。

編集:私の@ layout / repeatは:

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/background"
android:tileMode="repeat" />
4

1 に答える 1

0

アクティビティのonCreateメソッドでキャッシュカラーヒントを設定していることを確認しました。

 getListView().setCacheColorHint(Color.TRANSPARENT);
于 2012-12-11T08:48:15.420 に答える