inflate

fun inflate(context: Context, @LayoutRes resource: Int, root: ViewGroup): View
fun inflate(context: Context, @LayoutRes resource: Int, root: ViewGroup, attachToRoot: Boolean): View