Layout layout = ...
Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.paper0); BitmapDrawable bitmapDrawable = new BitmapDrawable(getResources(),bmp); bitmapDrawable.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); layout.setBackgroundDrawable(bitmapDrawable);
댓글
댓글 쓰기