SubName: SetTiledBackground
Description: Allows you to fill the view/activity background with a tile image
Tags: UI, Tiled, Background, Activity
Description: Allows you to fill the view/activity background with a tile image
B4X:
Sub SetTiledBackground(v as View, b as Bitmap)
Dim bd As BitmapDrawable
bd.Initialize(b)
Dim r As Reflector
r.Target = bd
r.RunMethod3("setTileModeXY","REPEAT", "android.graphics.Shader$TileMode", _
"REPEAT", "android.graphics.Shader$TileMode")
v.Background = bd
End Sub
Tags: UI, Tiled, Background, Activity