1

我是android新手,你能指导我如何在android中绘制以下形状吗?我将不胜感激。谢谢。在此处输入图像描述

4

1 回答 1

2
public class CustomView extends View{

   public onDraw(Canvas canvas){
     // Take paint object
      Paint fillBackgroundPaint = new Paint();
      fillBackgroundPaint.setColor(ContextCompat.getColor(context, R.color.black));

      // Draw lines and Rectangles by using the below methods on canvas
      canvas.drawLine()
      canvas.drawRect()

     }
   }
于 2017-01-18T14:05:29.100 回答