This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Android and the fly likes layout inflater in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "layout inflater in android" Watch "layout inflater in android" New topic

layout inflater in android

vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
can anybody tell what is the use of layout inflater class and inflate method with example?

thanks in advance
Monu Tripathi

Joined: Oct 12, 2008
Posts: 1369

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.

[List of FAQs] | [Android FAQ] | [Samuh Varta]
I agree. Here's the link:
subject: layout inflater in android
It's not a secret anymore!