(Advanced tutorial for Android experts (5) - The use of LayoutInflator in Android, pdf electronic version. This tutorial explains the use of LayoutInflator through an example. In practice, the development of LayoutInflator class is still very effective. Its effect is similar to findViewById (). The difference is that LayoutInflator is used to find the xml layout file under layout and instantiates it! While findViewById() is used to find detailed widget controls (such as Button, TextView, etc.) under detailed xml.
Codefans Advanced tutorial for Android experts (5) -- the use of LayoutInflator in Android pdf)