public class ElementScatter extends Object
Element layout file.
You can call the parse(int) method to generate an Element object using the XML file.
| 构造器 | 说明 |
|---|---|
ElementScatter(Context context) |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static ElementScatter |
getInstance(Context context) |
Obtains an
ElementScatter instance. |
Element |
parse(int xmlId) |
Parses the XML file to obtain the
Element object. |
public ElementScatter(Context context)
public static ElementScatter getInstance(Context context)
ElementScatter instance.context - Indicates the application context.ElementScatter instance.public Element parse(int xmlId)
Element object.
This method parses the resource ID of the XML file
and then reads the attributes to obtain the Element object.
xmlId - Indicates the resource ID of the XML file.Element object.