| | |
| | | import android.graphics.Paint; |
| | | import android.graphics.Path; |
| | | import android.graphics.PathDashPathEffect; |
| | | import android.graphics.Rect; |
| | | import android.graphics.RectF; |
| | | import android.os.Bundle; |
| | | import android.support.annotation.NonNull; |
| | | import android.support.annotation.Nullable; |
| | |
| | | canvas = holder.lockCanvas(); |
| | | paint.setColor(Color.RED); |
| | | path.addCircle(mSurfaceView.getWidth()/2,mSurfaceView.getHeight()/2,70, Path.Direction.CW); |
| | | path.addOval(new RectF(new Rect(100,100,200,200)), Path.Direction.CW); |
| | | canvas.drawPath(path,paint); |
| | | |
| | | } catch (Exception e) { |