I seem to have fixed this issue with the following code
Bitmap _back_bmp = BitmapFactory.decodeResource(context.getResources(), R.drawable.background);
BitmapDrawable backTiled = new BitmapDrawable(_back_bmp);
backTiled.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);
backTiled.setBounds(0, 0, this.getWidth(), this.getHeight());
this.back_bmp = backTiled.getTileModeX();
this.setBackgroundDrawable(backTiled);
But now I have my own problem. Can't be painted on canvas?
source
share