'What will if i pass in a null as 2 parameter and true as 3 parameter in inflate method in Android

What will if i pass in a null as 2 parameter and true as 3 parameter in inflate method in Android? I know that if i do something like this:

LayoutInflater.from(this).inflate(R.layout.children, parent)

R.layout.children will appear as a children of parent. Did i got it right? But if i pass like this

LayoutInflater.from(this).inflate(R.layout.children, null, false)

It will return me a R.layout.children, without parent, because parent passed as null. But what will if i pass like this?

LayoutInflater.from(this).inflate(R.layout.children, null)

What should R.layout.children as children join? The parents are null, and the third parameter is true by default. That is, there will be an addView implicitly. But to what?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source