참고자료(https://developer.android.com/develop/ui/views/layout/custom-views/custom-drawing)

Construnctor

onMeasure

onLayout

override fun onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int) {
    children?.forEachIndexed { index, view ->
            view.layout(x, y x + view.measuredWidth, y + view.measuredHeight)
      }
}