tags:

views:

68

answers:

3

What is the layout inflater used for in an Android application?

+1  A: 

Basically it is needed to create (or fill) View based on XML file in runtime. For example if you need to generate views dynamically for you ListView items.

cement
A: 

LayoutInflater is used instantiate XMLs that create Views. This involves parsing the XML, creating the View object, and finally adding it to the View hierarchy.

Check out the Android API for more information about it.

Tyler
+1  A: 

Uhm, LayoutInflater?

Felix