目录

AnimationSet

Class Info

public class AnimationSet extends Animation

An animation set.

Public Constructor Summary

Constructor Name

AnimationSet(boolean shareInterpolator)

Creates an AnimationSet object using the parameter indicating whether to share the interpolator.

Public Method Summary

Qualifier and Type

Method Name and Description

void

addAnimation(Animation animation)

Adds an animation.

void

cleanAnimation()

Deletes an animation.

Interpolator

getInterpolator()

Obtains an animation interpolator.

long

getDuration()

Obtains the animation duration.

void

setDuration(long duration)

Sets the animation duration.

void

setInterpolator(Interpolator interpolator)

Sets an animation interpolator.

Methods Inherited from Class com.huawei.hms.maps.model.animation.Animation

getDuration(), setInterpolator(Interpolator interpolator)

Public Constructors

[h2]AnimationSet

Constructor

public AnimationSet(boolean shareInterpolator)

Creates an AnimationSet object using the parameter indicating whether to share the interpolator.

Parameters

Name

Description

shareInterpolator

Indicates whether to share the interpolator.

Public Methods

[h2]addAnimation

Method

public void addAnimation(Animation animation)

Adds an animation.

Parameters

Name

Description

animation

Animation.

[h2]cleanAnimation

Method

public void cleanAnimation()

Deletes an animation.

[h2]getInterpolator

Method

public Interpolator getInterpolator()

Obtains an animation interpolator.

Returns

Type

Description

Interpolator

Interpolator.

[h2]getDuration

Method

public long getDuration()

Obtains the animation duration.

Returns

Type

Description

long

Animation duration, in milliseconds.

[h2]setDuration

Method

public void setDuration(long duration)

Sets the animation duration.

Parameters

Name

Description

duration

Animation duration, in milliseconds. The default value is 250.

[h2]setInterpolator

Method

public void setInterpolator(Interpolator interpolator)

Sets an animation interpolator.

Parameters

Name

Description

interpolator

Interpolator.