What does LayoutInflater in Android do?

user386430 picture user386430 · Aug 13, 2010 · Viewed 273.2k times · Source

What is the use of LayoutInflater in Android?

Answer

Pentium10 picture Pentium10 · Aug 13, 2010

The LayoutInflater class is used to instantiate the contents of layout XML files into their corresponding View objects.

In other words, it takes an XML file as input and builds the View objects from it.