Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

layout inflater in android

 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody tell what is the use of layout inflater class and inflate method with example?




thanks in advance
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you gone through the documentation of this class? API Demos package bundled with the SDK has plenty of examples that demonstrate the use of this class.

In a nutshell, this class is used to inflate XMLs that define Views and ViewGroups. Inflation is a process that includes: parsing of layout XMLs, creation of appropriate View objects and their addition to view hierarchy.

See LayoutInflater Reference for details.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic