言語

LocationButtonRequest.Builder.SetPaddingBottom(Int32) Method

Definition

Sets the bottom padding of the button.

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

Parameters

paddingBottom
Int32

Returns

Attributes

Remarks

Sets the bottom 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.setPaddingBottom.

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