Sprache

ILocationButtonSession.SetPadding(Int32, Int32, Int32, Int32) Method

Definition

Sets the padding for the location button within its container.

[Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void SetPadding(int left, int top, int right, int bottom);
[<Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member SetPadding : int * int * int * int -> unit

Parameters

left
Int32

The left padding in pixels.

top
Int32

The top padding in pixels.

right
Int32

The right padding in pixels.

bottom
Int32

The bottom padding in pixels.

Attributes

Remarks

Sets the padding for the location button within its container.

See the padding setters (e.g., LocationButtonRequest.Builder.setPaddingLeft(int)) for input constraints.

Android reference for android.app.permissionui.LocationButtonSession.setPadding.

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