Partager via


UiAutomation.SetAnimationScale(Single) Method

Definition

Sets the system settings values that control the scaling factor for animations.

[Android.Runtime.Register("setAnimationScale", "(F)V", "", ApiSince=33)]
public void SetAnimationScale (float scale);
[<Android.Runtime.Register("setAnimationScale", "(F)V", "", ApiSince=33)>]
member this.SetAnimationScale : single -> unit

Parameters

scale
Single

The scaling factor for all animations.

Attributes

Remarks

Sets the system settings values that control the scaling factor for animations. The scale controls the animation playback speed for animations that respect these settings. Animations that do not respect the settings values will not be affected by this function. A lower scale value results in a faster speed. A value of 0 disables animations entirely. When animations are disabled services receive window change events more quickly which can reduce the potential by confusion by reducing the time during which windows are in transition.

Java documentation for android.app.UiAutomation.setAnimationScale(float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to