0

How to repeat image backgroung LinearLayout horizontal and vertical?

<LinearLayout ...
              android:background="@drawable/my_image" >
<LinearLayout/>
Mester Hassan
  • 538
  • 5
  • 10

2 Answers2

1

you can use tileMode property with a Bitmap drawable. There's an example in this link

Community
  • 1
  • 1
suitianshi
  • 3,300
  • 1
  • 17
  • 34
0

Try this backrepeat.xml should look like:

<bitmap
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/tile"
    android:tileMode="repeat"
    android:dither="true" />
Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138