Monday, 17 November 2014

What is Inflator in Android ?

Inflator is a Class or a component which

1- Parses XML file.

2- Creates object for elements in XML.
  - It Creates heirarchy of Objects.
  - It returns object of root element.

3- Inflator inflate XML for Layout and Menu using LayoutInflator and MenuInflator.

4- To get Layout and MenuInflator activity provides getLayoutInflator() and getMenuInflator()
     method respectivily.

No comments:

Post a Comment