語言

AbsSeekBar.SetThumb(Drawable) 方法

定義

設定在 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

參數

thumb
Drawable

可繪圖代表拇指

屬性

備註

設定在 SeekBar 進度條末端會畫出的拇指。

如果拇指是有效的可繪製(即非空繪),其寬度的一半將被用作新的拇指偏移量(

Java 文件 android.widget.AbsSeekBar.setThumb(android.graphics.drawable.Drawable)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於