答案 0 :(得分:1)
您可以覆盖onDraw
的{{1}}事件,并使用ImageView
对象执行任何操作。
canvas
对于triagle画(见this SO answer):
public class MyImageView extends ImageView {
...
@Override
public void onDraw(Canvas canvas){
super.onDraw(canvas);
Point[] point = ... //create three points here for the triangle
Paint paint = ... // create your desired color
drawTriangle(canvas, point, paint);
}