File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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!