Sdílet prostřednictvím


KeyboardView.InvalidateKey(Int32) Method

Definition

Invalidates a key so that it will be redrawn on the next repaint.

[Android.Runtime.Register("invalidateKey", "(I)V", "GetInvalidateKey_IHandler")]
public virtual void InvalidateKey (int keyIndex);
[<Android.Runtime.Register("invalidateKey", "(I)V", "GetInvalidateKey_IHandler")>]
abstract member InvalidateKey : int -> unit
override this.InvalidateKey : int -> unit

Parameters

keyIndex
Int32

the index of the key in the attached Keyboard.

Attributes

Remarks

Invalidates a key so that it will be redrawn on the next repaint. Use this method if only one key is changing it's content. Any changes that affect the position or size of the key may not be honored.

Java documentation for android.inputmethodservice.KeyboardView.invalidateKey(int).

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

See also