语言

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)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于