public class ColorScatter extends Object
StateColor or Color object.
To obtain StateColor object, call parse(int) with the XML file ID passed in.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static ColorScatter |
getInstance(Context context) |
Obtains a
ColorScatter instance. |
StateColor |
parse(int xmlId) |
Parses the XML file to obtain the
StateColor object. |
public static ColorScatter getInstance(Context context)
ColorScatter instance.context - Indicates the application context.ColorScatter instance.public StateColor parse(int xmlId)
StateColor object.
This method parses the XML file and then reads the attributes to obtain the StateColor object.
xmlId - Indicates the ID of the XML file.StateColor object.ColorScatterException - Throws this exception if parsing of the XML file has failed or the format of the
XML file is incorrect.