I am trying to tile a 20x20 background onto my Custom View but for some reason I am unable too.
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 isn't working?