Interface

ContentPaddingScope

An interface that introduces the contentPadding property to a Style receiver scope interface.

Source set: Common
@Deprecated(
    DeprecatedStyleScope,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public interface ContentPaddingScope

An interface that introduces the contentPadding property to a Style receiver scope interface.

Functions

contentPaddingStart

Source set: Common
public fun contentPaddingStart(value: Dp)

Sets the padding for the start edge of the component's content. Content padding is the space between the component's border (if any) and its content. The width/height of the component includes content padding.

This property is not inherited

Parameters

value The amount of padding to apply to the start edge.

contentPaddingEnd

Source set: Common
public fun contentPaddingEnd(value: Dp)

Sets the padding for the end edge of the component's content. Content padding is the space between the component's border (if any) and its content. The width/height of the component includes content padding.

This property is not inherited

Parameters

value The amount of padding to apply to the end edge.

contentPaddingTop

Source set: Common
public fun contentPaddingTop(value: Dp)

Sets the padding for the top edge of the component's content. Content padding is the space between the component's border (if any) and its content. The width/height of the component includes content padding.

This property is not inherited

Parameters

value The amount of padding to apply to the top edge.

contentPaddingBottom

Source set: Common
public fun contentPaddingBottom(value: Dp)

Sets the padding for the bottom edge of the component's content. Content padding is the space between the component's border (if any) and its content. The width/height of the component includes content padding.

This property is not inherited

Parameters

value The amount of padding to apply to the bottom edge.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: