I think this should be the fastest / least code solution to do tiling on a view and leaving the OS to deal with the resource management.
B4X:
Sub TiledBackGround
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmap(File.DirAssets,"tileback.jpg"))
Dim r As Reflector
r.Target = bd
r.RunMethod3("setTileModeXY","REPEAT", "android.graphics.Shader$TileMode", _
"REPEAT", "android.graphics.Shader$TileMode")
Activity.Background = bd
End Sub
I think this should be the fastest / least code solution to do tiling on a view and leaving the OS to deal with the resource management.
B4X:
Sub TiledBackGround
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmap(File.DirAssets,"tileback.jpg"))
Dim r As Reflector
r.Target = bd
r.RunMethod3("setTileModeXY","REPEAT", "android.graphics.Shader$TileMode", _
"REPEAT", "android.graphics.Shader$TileMode")
Activity.Background = bd
End Sub