I'm trying to focus a 20x20 background on my user view, but for some reason I can't either.
BitmapDrawable background; background = new BitmapDrawable(BitmapFactory.decodeResource(getResources(), R.drawable.back)); background.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); background.draw(canvas);
Does anyone have an idea why it is not working?
android bitmap draw
Peter
source share