Bitmap mit tileMode="mirror" werden nicht sofort wiederholend dargestellt

  • Antworten:0
Gelöschter Account
  • Forum-Beiträge: 101

16.08.2011, 19:07:55 via Website

Hallo ihrs,

ich hab einen komischen Fehler. Mein RelativeLayout besitzt folgende Layer-List als background:

1<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
2 <item>
3 <bitmap android:src="@drawable/bg_spikes" android:tileMode="mirror" />
4 </item>
5 <item android:top="21dip">
6 <bitmap android:src="@drawable/bg_black_noise" android:tileMode="mirror" />
7 </item>
8 <item>
9 <shape>
10 <gradient android:startColor="#4000" android:centerColor="#0000"
11 android:endColor="#0000" android:centerY="0.5" android:angle="90" />
12 </shape>
13 </item>
14</layer-list>

Sobald ich die Activity öffne wird das erste Bitmap allerdings nicht wiederholen (mirrored) angezeigt sondern gestreckt. Erst wenn ich eine andere Activity aufrufe und per back wieder zurückkomme wird das Bild korrekt wiederholend angezeigt.

Habt ihr eine Ahnung woran das liegen kann?

Antworten