SeslProjectionBackgroundView

inner class SeslProjectionBackgroundView(context: Context, blurElevationPolicy: SeslFloatingBlurElevationPolicy, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : View, BlurSupportable, MaterialLogTag

Individual projection background item supporting blur effects and theme drawables.

Parameters

context

The Context the view is running in.

blurElevationPolicy

Policy for computing elevation blur curves.

attrs

Attribute set.

defStyleAttr

Default style attribute.

Constructors

Link copied to clipboard
constructor(context: Context, blurElevationPolicy: SeslFloatingBlurElevationPolicy, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Properties

Link copied to clipboard

ResizeAnimation for animating position and size changes.

Link copied to clipboard

Default background drawable resource ID based on theme.

Link copied to clipboard

Last computed final position rectangle.

Link copied to clipboard
open override val logTag: String

Functions

Link copied to clipboard

Animates view position and size to target rectangle.

Link copied to clipboard

Applies blur curve if background blur is currently enabled.

Link copied to clipboard

Applies curve info for background blur on Android 15+.

Link copied to clipboard
open override fun applyBlurInfo(context: Context): Boolean
Link copied to clipboard
open override fun clearBlurInfo(context: Context)
Link copied to clipboard
fun initialize(tag: String, viewId: Int)

Initializes tag, view ID, background drawable, and default elevation.

Link copied to clipboard
open override fun isBlurApplied(): Boolean
Link copied to clipboard
fun replaceAnimator(propertyName: String)

Replaces alpha property animator with a named property.

Link copied to clipboard

Configures animation parameters.

Link copied to clipboard
open override fun setBackground(background: Drawable?)
Link copied to clipboard
inline fun setBackgroundTint(@ColorInt tint: Int)
Link copied to clipboard
open override fun setBlurMode(semBlurInfoMode: Int)
Link copied to clipboard

Sets view position and size directly to target rectangle without animation.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setOnResizeUpdate(update: () -> Unit)

Sets callback invoked on each resize animation frame.

Link copied to clipboard

Animates background item alpha to visible or hidden state.