Lingua

LocationButtonRequest.Builder.SetPaddingTop(Int32) Method

Definition

Sets the top padding of the button.

[Android.Runtime.Register("setPaddingTop", "(I)Landroid/app/permissionui/LocationButtonRequest$Builder;", "", ApiSince=37)]
public Android.App.PermissionUI.LocationButtonRequest.Builder SetPaddingTop(int paddingTop);
[<Android.Runtime.Register("setPaddingTop", "(I)Landroid/app/permissionui/LocationButtonRequest$Builder;", "", ApiSince=37)>]
member this.SetPaddingTop : int -> Android.App.PermissionUI.LocationButtonRequest.Builder

Parameters

paddingTop
Int32

Returns

Attributes

Remarks

Sets the top padding of the button.

The padding must be between 4dp and 8dp (inclusive). This restricted range ensures a safe and standardized button appearance and touch target.

Values outside this range will be clamped. If not explicitly set, it defaults to 4dp.

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

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