View.Selected 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 the selection state of this view. -or- Changes the selection state of this view.
public virtual bool Selected { [Android.Runtime.Register("isSelected", "()Z", "GetIsSelectedHandler")] get; [Android.Runtime.Register("setSelected", "(Z)V", "GetSetSelected_ZHandler")] set; }
[<get: Android.Runtime.Register("isSelected", "()Z", "GetIsSelectedHandler")>]
[<set: Android.Runtime.Register("setSelected", "(Z)V", "GetSetSelected_ZHandler")>]
member this.Selected : bool with get, set
Property Value
true if the view is selected, false otherwise
- Attributes
Remarks
Property getter documentation:
Indicates the selection state of this view.
Java documentation for android.view.View.isSelected()
.
Property setter documentation:
Changes the selection state of this view. A view can be selected or not. Note that selection is not the same as focus. Views are typically selected in the context of an AdapterView like ListView or GridView; the selected view is the view that is highlighted.
Java documentation for android.view.View.setSelected(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.