``` fun <T : android.view.View> T.frameLayou...
# anko
s
Copy code
fun <T : android.view.View> T.frameLayoutParams(
        width: <http://kotlin.Int|kotlin.Int> = wrapContent, height: <http://kotlin.Int|kotlin.Int> = wrapContent,
        init: FrameLayout.LayoutParams.() -> kotlin.Unit = { }): T {
    val layoutParams = FrameLayout.LayoutParams(width, height)
    layoutParams.init()
    this@frameLayoutParams.layoutParams = layoutParams
    return this
}