NumberPicker.WrapSelectorWheel 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.
Gets whether the selector wheel wraps when reaching the min/max value. -or- Sets whether the selector wheel shown during flinging/scrolling should
wrap around the NumberPicker#getMinValue()
and
NumberPicker#getMaxValue()
values.
public virtual bool WrapSelectorWheel { [Android.Runtime.Register("getWrapSelectorWheel", "()Z", "GetGetWrapSelectorWheelHandler")] get; [Android.Runtime.Register("setWrapSelectorWheel", "(Z)V", "GetSetWrapSelectorWheel_ZHandler")] set; }
[<get: Android.Runtime.Register("getWrapSelectorWheel", "()Z", "GetGetWrapSelectorWheelHandler")>]
[<set: Android.Runtime.Register("setWrapSelectorWheel", "(Z)V", "GetSetWrapSelectorWheel_ZHandler")>]
member this.WrapSelectorWheel : bool with get, set
Property Value
True if the selector wheel wraps.
- Attributes
Remarks
Property getter documentation:
Gets whether the selector wheel wraps when reaching the min/max value.
Java documentation for android.widget.NumberPicker.getWrapSelectorWheel()
.
Property setter documentation:
Sets whether the selector wheel shown during flinging/scrolling should wrap around the NumberPicker#getMinValue()
and NumberPicker#getMaxValue()
values.
By default if the range (max - min) is more than the number of items shown on the selector wheel the selector wheel wrapping is enabled.
<strong>Note:</strong> If the number of items, i.e. the range ( #getMaxValue()
- #getMinValue()
) is less than the number of items shown on the selector wheel, the selector wheel will not wrap. Hence, in such a case calling this method is a NOP.
Java documentation for android.widget.NumberPicker.setWrapSelectorWheel(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.