How To Change The Color Of The Side View Of The Star In Android?
To see the below image, Masking star And the code is, import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint;
Solution 1:
The reason this is not working is because the Hardware acceleration
might be turned off and you need to turn it on. Refer this: http://developer.android.com/guide/topics/graphics/hardware-accel.html
But if you are not planning to do this via Hardware Acceleration
, then use
canvas.saveLayer(0,0,canvas.getWidth(),canvas.getHeight(),q);
instead of this:
setLayerType(LAYER_TYPE_HARDWARE, q);
Post a Comment for "How To Change The Color Of The Side View Of The Star In Android?"