Interface

AlphaScope

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

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

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

Functions

alpha

Source set: Common
public fun alpha(@FloatRange(from = 0.0, to = 1.0) value: Float)

Sets the opacity of the component. A value of 1.0f means fully opaque, 0.0f means fully transparent.

This property is not inherited

Parameters

value The alpha value (0.0f to 1.0f).
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: