目录

AnimationSet

Class Info

public class AnimationSet extends Animation

动画集合。

Public Constructor Summary

Constructor Name

AnimationSet(boolean shareInterpolator)

使用是否共享插值器参数创建AnimationSet对象。

Public Method Summary

Qualifier and Type

Method Name and Description

void

addAnimation(Animation animation)

添加动画。

void

cleanAnimation()

清除动画。

Interpolator

getInterpolator()

获取动画插值器。

long

getDuration()

获取动画持续时间。

void

setDuration(long duration)

设置动画持续时间。

void

setInterpolator(Interpolator 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)

使用是否共享插值器参数创建AnimationSet对象。

Parameters

Name

Description

shareInterpolator

是否共享插值器。

Public Methods

[h2]addAnimation

Method

public void addAnimation(Animation animation)

添加动画。

Parameters

Name

Description

animation

动画。

[h2]cleanAnimation

Method

public void cleanAnimation()

清除动画。

[h2]getInterpolator

Method

public Interpolator getInterpolator()

获取动画插值器。

Returns

Type

Description

Interpolator

插值器。

[h2]getDuration

Method

public long getDuration()

获取动画持续时间。

Returns

Type

Description

long

动画持续时间,单位:毫秒。

[h2]setDuration

Method

public void setDuration(long duration)

设置动画持续时间。

Parameters

Name

Description

duration

动画持续时间,单位:毫秒,默认为250毫秒。

[h2]setInterpolator

Method

public void setInterpolator(Interpolator interpolator)

设置动画插值器。

Parameters

Name

Description

interpolator

插值器。