View.Pressed Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether the view is currently in pressed state. -or- Sets the pressed state for this view.
public virtual bool Pressed { [Android.Runtime.Register("isPressed", "()Z", "GetIsPressedHandler")] get; [Android.Runtime.Register("setPressed", "(Z)V", "GetSetPressed_ZHandler")] set; }
[<get: Android.Runtime.Register("isPressed", "()Z", "GetIsPressedHandler")>]
[<set: Android.Runtime.Register("setPressed", "(Z)V", "GetSetPressed_ZHandler")>]
member this.Pressed : bool with get, set
Property Value
true if the view is currently pressed, false otherwise
- Attributes
Remarks
Property getter documentation:
Indicates whether the view is currently in pressed state. Unless #setPressed(boolean)
is explicitly called, only clickable views can enter the pressed state.
Java documentation for android.view.View.isPressed()
.
Property setter documentation:
Sets the pressed state for this view.
Java documentation for android.view.View.setPressed(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.