Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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]
It is sorta covered in the JavaRanch Style Guide.
subject: layout inflater in android
Similar Threads
decompressing byte[]
how to inflate footer layout below listview without empty space
Menu Button is not working
inflating UTF-8 ant Latin-1 compressed text