Taal

InputMethodManager.SetImeHideAnimationDurationOverrideMillis Method

Definition

Sets or clears the IME hide animation duration override.

[Android.Runtime.Register("setImeHideAnimationDurationOverrideMillis", "(Landroid/view/View;J)V", "", ApiSince=37)]
public void SetImeHideAnimationDurationOverrideMillis(Android.Views.View view, long durationMillis);
[<Android.Runtime.Register("setImeHideAnimationDurationOverrideMillis", "(Landroid/view/View;J)V", "", ApiSince=37)>]
member this.SetImeHideAnimationDurationOverrideMillis : Android.Views.View * int64 -> unit

Parameters

view
View

the view whose tree the duration override is to be applied to

durationMillis
Int64

the non-negative duration override in milliseconds being set, or -1 to clear the duration override.

Attributes

Exceptions

durationMillis is less than -1.

Remarks

Sets or clears the IME hide animation duration override.

When set, this value is used as the requested duration for the animation of the IME hiding, including animations with other insets. The actual duration can differ because the system clamps the value, because of the animation duration scale, or because the system controls IME animations in multi-window mode. Call GetImeHideAnimationDurationOverrideMillis(View) to get the clamped value.

Android reference for android.view.inputmethod.InputMethodManager.setImeHideAnimationDurationOverrideMillis.

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