getLayoutInflater

fun ViewGroup.getLayoutInflater(@LayoutRes xmlRes: Int, attachToRoot: Boolean): View

Inflates a layout resource into this ViewGroup.

레이아웃 리소스를 이 ViewGroup에 인플레이트합니다.

Return

The inflated View.

인플레이트된 View.

Parameters

xmlRes

Layout resource ID.

레이아웃 리소스 ID.

attachToRoot

Whether to attach the inflated layout to the root.

인플레이트된 레이아웃을 루트에 연결할지 여부.