iex
05/25/2018, 4:24 PMfun <T: View> T.matchParent() =
apply {
layoutParams = ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
}
but it doesn't work because of the first ViewGroup.LayoutParams