Freigeben über


TextView.SetCursorVisible(Boolean) Method

Definition

Set whether the cursor is visible.

[Android.Runtime.Register("setCursorVisible", "(Z)V", "GetSetCursorVisible_ZHandler")]
public virtual void SetCursorVisible (bool visible);
[<Android.Runtime.Register("setCursorVisible", "(Z)V", "GetSetCursorVisible_ZHandler")>]
abstract member SetCursorVisible : bool -> unit
override this.SetCursorVisible : bool -> unit

Parameters

visible
Boolean
Attributes

Remarks

Set whether the cursor is visible. The default is true. Note that this property only makes sense for editable TextView. If IME is consuming the input, the cursor will always be invisible, visibility will be updated as the last state when IME does not consume the input anymore.

Java documentation for android.widget.TextView.setCursorVisible(boolean).

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