3
这里是我所需要的图像:更改RadialGradient,渐变位置?
http://imgur.com/prXA5 我需要从1去2和它必须是一个编程没有XML。
//Create transparent circle
RadialGradient gradient = new android.graphics.RadialGradient(newBitmap.getWidth()/ 2,newBitmap.getHeight()/2, newBitmap.getWidth() - newBitmap.getWidth()/2, 0x00000000, 0xFF000000, android.graphics.Shader.TileMode.CLAMP);