Inflate a view from an XML resource. This convenience method wraps the LayoutInflater class, which provides a full range of options for view inflation.
Parameters
context
The Context object for your activity or application.
resource
The resource ID to inflate
root
A view group that will be the parent. Used to properly inflate the layout_* parameters.
public static View inflate (Context context, int resource, ViewGroup root)
Inflate a view from an XML resource. This convenience method wraps the
LayoutInflaterclass, which provides a full range of options for view inflation.Parameters
See Also
LayoutInflater