語言

ILocationButtonSession.SetBackgroundColor(Color) 方法

定義

設定位置按鈕的背景色。

[Android.Runtime.Register("setBackgroundColor", "(I)V", "GetSetBackgroundColor_IHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void SetBackgroundColor(Android.Graphics.Color color);
[<Android.Runtime.Register("setBackgroundColor", "(I)V", "GetSetBackgroundColor_IHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member SetBackgroundColor : Android.Graphics.Color -> unit

參數

color
Color

所需的背景色,作為 ColorInt.

屬性

備註

設定位置按鈕的背景色。

請參見 LocationButtonRequest.Builder.setBackgroundColor(int) 以了解輸入限制。

Android 參考資料。android.app.permissionui.LocationButtonSession.setBackgroundColor

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

適用於