如何使用自定义视图绘制位图

时间:2013-11-29 09:45:42

标签: android android-view

我想使用自定义视图绘制带点图像的圆圈,以及如何在锁定屏幕中像点亮一样为虚线圆圈设置动画。

请给我适当的建议

enter image description here

1 个答案:

答案 0 :(得分:0)

public class MyView extends View{
    ... constructors ...
    protected void onDraw(Canvas canvas){
        canvas.drawBitmap(myBitmap,...); //check the link
    }
}

this is the link.