Resources.GetLayout(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return an XmlResourceParser through which you can read a view layout description for the given resource ID.
[Android.Runtime.Register("getLayout", "(I)Landroid/content/res/XmlResourceParser;", "GetGetLayout_IHandler")]
public virtual System.Xml.XmlReader GetLayout (int id);
[<Android.Runtime.Register("getLayout", "(I)Landroid/content/res/XmlResourceParser;", "GetGetLayout_IHandler")>]
abstract member GetLayout : int -> System.Xml.XmlReader
override this.GetLayout : int -> System.Xml.XmlReader
Parameters
- id
- Int32
The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.
Returns
A new parser object through which you can read the XML data.
- Attributes
Exceptions
Throws NotFoundException if the given ID does not exist.
Remarks
Return an XmlResourceParser through which you can read a view layout description for the given resource ID. This parser has limited functionality -- in particular, you can't change its input, and only the high-level events are available.
This function is really a simple wrapper for calling #getXml
with a layout resource.
Java documentation for android.content.res.Resources.getLayout(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.