言語

LocationButtonRequest.Builder.SetBackgroundColor(Color) メソッド

定義

ボタンの背景色を設定します。

[Android.Runtime.Register("setBackgroundColor", "(I)Landroid/app/permissionui/LocationButtonRequest$Builder;", "", ApiSince=37)]
public Android.App.PermissionUI.LocationButtonRequest.Builder SetBackgroundColor(Android.Graphics.Color backgroundColor);
[<Android.Runtime.Register("setBackgroundColor", "(I)Landroid/app/permissionui/LocationButtonRequest$Builder;", "", ApiSince=37)>]
member this.SetBackgroundColor : Android.Graphics.Color -> Android.App.PermissionUI.LocationButtonRequest.Builder

パラメーター

backgroundColor
Color

返品

属性

注釈

ボタンの背景色を設定します。

システムは、アルファ チャネルを 255 にオーバーライドすることで、背景色が完全に不透明であることを確認します。 明示的に設定しない場合、既定ではシステムの既定の色になります。

android.app.permissionui.LocationButtonRequest.Builder.setBackgroundColorの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象