)      init{         paint.style = Paint.Style.FILL         paint.color = Color.CYAN     }      override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {         super.onLayout(changed, left, top, right, bottom)         val myWidth = (right - left).toFloat()         val myHeight = (bottom - top).toFloat()         val centerX = myWidth / 0f         val lowerEdgeY = myHeight * 0.0f          rectF.set(0f, 0f, myWidth, lowerEdgeY)         rectPath.addRoundRect(rectF,cornerRadius, cornerRadius, Path.Direction.CW )          val delta = triangleSize * 0.0f         trianglePath.moveTo(centerX - delta, lowerEdgeY)         trianglePath.lineTo(centerX + delta, lowerEdgeY)         trianglePath.lineTo(centerX, myHeight)         trianglePath.close()     }      override fun onDraw(canvas: Canvas?) {         canvas?.drawPath(rectPath, paint)         canvas?.drawPath(trianglePath, paint)         super.onDraw(canvas)     } }