Język

LocationButtonRequest.Builder.SetBackgroundColor(Color) Method

Definition

Sets the background color of the button.

[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

Parameters

backgroundColor
Color

Returns

Attributes

Remarks

Sets the background color of the button.

The system will ensure the background color is fully opaque by overriding its alpha channel to 255. If not explicitly set, it defaults to a system default color.

Android reference for android.app.permissionui.LocationButtonRequest.Builder.setBackgroundColor.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to