public class AnimatorScatter extends Object
Animator object.
The AnimatorScatter object parses animation attributes, reads the attribute values,
and sets them for the Animator object, such as AnimatorValue and AnimatorProperty.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static AnimatorScatter |
getInstance(Context context) |
Obtains an
AnimatorScatter instance. |
Animator |
parse(int xmlId) |
Parses the XML file to obtain the
Animator object in the layout. |
public static AnimatorScatter getInstance(Context context)
AnimatorScatter instance.context - Indicates the application context.AnimatorScatter instance.public Animator parse(int xmlId)
Animator object in the layout.
This method parses the resource ID of the XML file
and then reads the attributes to obtain the Animator object.
xmlId - Indicates the resource ID of the XML file.Animator object.