Assuming you have tile pattern name type.png, you need to create xml in drawable directory. background.xml 1 2 3 4 5 6 7 <?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/type" android:tileMode="repeat" android:dither="true" /> In your layout, set the value of background to your xml background. 1 2 3 4 5 6 7 8 9 <?xml version="1.0" [...]
Related posts:
↧