Sdílet prostřednictvím


AbsSeekBar.SetThumb(Drawable) Method

Definition

Sets the thumb that will be drawn at the end of the progress meter within the SeekBar.

[Android.Runtime.Register("setThumb", "(Landroid/graphics/drawable/Drawable;)V", "GetSetThumb_Landroid_graphics_drawable_Drawable_Handler")]
public virtual void SetThumb (Android.Graphics.Drawables.Drawable? thumb);
[<Android.Runtime.Register("setThumb", "(Landroid/graphics/drawable/Drawable;)V", "GetSetThumb_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetThumb : Android.Graphics.Drawables.Drawable -> unit
override this.SetThumb : Android.Graphics.Drawables.Drawable -> unit

Parameters

thumb
Drawable

Drawable representing the thumb

Attributes

Remarks

Sets the thumb that will be drawn at the end of the progress meter within the SeekBar.

If the thumb is a valid drawable (i.e. not null), half its width will be used as the new thumb offset (

Java documentation for android.widget.AbsSeekBar.setThumb(android.graphics.drawable.Drawable).

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