語言

AppWidgetHostView.SetOnLightBackground(Boolean) 方法

定義

設定小工具是否顯示在淺色或白色背景上,並使用替代介面(如有)。

[Android.Runtime.Register("setOnLightBackground", "(Z)V", "GetSetOnLightBackground_ZHandler", ApiSince=29)]
public virtual void SetOnLightBackground(bool onLightBackground);
[<Android.Runtime.Register("setOnLightBackground", "(Z)V", "GetSetOnLightBackground_ZHandler", ApiSince=29)>]
abstract member SetOnLightBackground : bool -> unit
override this.SetOnLightBackground : bool -> unit

參數

onLightBackground
Boolean
屬性

備註

設定小工具是否顯示在淺色或白色背景上,並使用替代介面(如有)。

Java 文件 android.appwidget.AppWidgetHostView.setOnLightBackground(boolean)。

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

適用於