語言

Spinner.SetPopupBackgroundDrawable(Drawable) 方法

定義

設定旋轉器跳出視窗的背景可繪製。

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

參數

background
Drawable

可繪製背景

屬性

備註

設定旋轉器跳出視窗的背景可繪製。 僅在 中有效 #MODE_DROPDOWN;此方法在其他模式中是 no-op。

Java 文件 android.widget.Spinner.setPopupBackgroundDrawable(android.graphics.drawable.Drawable)

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

適用於