setSize

fun View.setSize(width: Int, height: Int)

Sets both width and height of the view.

View의 너비와 높이를 모두 설정합니다.

Parameters

width

Width in pixels.

너비(픽셀 단위).

height

Height in pixels.

높이(픽셀 단위).