[android-developers] Re: Repeat background
Hello.
I have verifyed that the problem is on several phones as well, not only the emulator.
Is there a better way to repeat background images? that will work on all phones?
Den måndagen den 28:e maj 2012 kl. 11:38:01 UTC+2 skrev Kristoffer:
Hello.--
Iam using a small image and repeats it as a background in my app,
this
is how i do it.
bgrepeat.png
backgroundrepeat.xml
i have them in the drawable folder.
This is how the .xml look like.
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android "
android:src="@drawable/bgrepeat"
android:tileMode="repeat"
android:dither="true"
/>
And i just call in in xml like this.
android:background="@drawable/backgroundrepeat"
If i run this on my Galaxy S2 then the background repeats and looks
good, but if i try on a tablet (galaxy 8.9) then it does not repeat
it
just zooms the bgrepeat.png file, and same result in emulator on my
pc.
I need to know that this will work on most devices, and why it doesent
work on every device.. bug?
Any idees?
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home