Udostępnij za pośrednictwem


View.Hovered Property

Definition

Returns true if the view is currently hovered. -or- Sets whether the view is currently hovered.

public virtual bool Hovered { [Android.Runtime.Register("isHovered", "()Z", "GetIsHoveredHandler")] get; [Android.Runtime.Register("setHovered", "(Z)V", "GetSetHovered_ZHandler")] set; }
[<get: Android.Runtime.Register("isHovered", "()Z", "GetIsHoveredHandler")>]
[<set: Android.Runtime.Register("setHovered", "(Z)V", "GetSetHovered_ZHandler")>]
member this.Hovered : bool with get, set

Property Value

True if the view is currently hovered.

Attributes

Remarks

Property getter documentation:

Returns true if the view is currently hovered.

Java documentation for android.view.View.isHovered().

Property setter documentation:

Sets whether the view is currently hovered.

Calling this method also changes the drawable state of the view. This enables the view to react to hover by using different drawable resources to change its appearance.

The #onHoverChanged method is called when the hovered state changes.

Java documentation for android.view.View.setHovered(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