I had previously this ``` fun <T: View> T.ma...
# android
i
I had previously this
Copy code
fun <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