I have a ListView whose elements have a mosaic background. For this, I use the following drawable xml:
<bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/tile" android:tileMode="repeat" />
This usually works. Sometimes, however, src drawable is not engraved, but stretched to fill the entire list item. (I have several different such fragments, and I use them in the same ListView. If stretching instead of tiles, it was never in all at once what it's worth.)
I also tried adding android:dither="true" to this xml, as I read somewhere that there could be errors without it. This has not changed anything.
Has anyone had the same problem? How did you fix it?
android xml drawable tiling
benvd Dec 02 2018-10-12 14:54
source share