Re: [android-developers] Re: image background - how to repeat an image rather than strech it

2011-01-14 Thread Richard Leggett
An easy way of making a bitmap repeat is to create an XML file in the drawable folder which looks something like this: http://schemas.android.com/apk/res/android"; android:src="@drawable/background" android:tileMode="repeat" /> "background" is a PNG in the same folder, it doesn't sound

[android-developers] Re: image background - how to repeat an image rather than strech it

2011-01-13 Thread Muhammad Ali
You can create a bitmap in memory, using your own file and draw it in background. It will help you like the repeat image. On Jan 12, 1:57 pm, liordav wrote: > Hi, > I have an image I want to use as a background to some layout. > the problem is the image contains a texture of slant lines, so if

[android-developers] Re: image background - how to repeat an image rather than strech it

2011-01-12 Thread Doug
See BitmapDrawable and its related xml configuration documentation if you want to tile an image for the background of a View. On Jan 12, 12:57 am, liordav wrote: > Hi, > I have an image I want to use as a background to some layout. > the problem is the image contains a texture of slant lines, so