Floating Group Layout
Base layout container for Samsung OneUI floating components.
Provides smooth show/hide transitions, scroll integration with SeslScrollable views, background projection rendering, and blur support.
Parameters
The Context the view is running in.
The attributes of the XML tag inflating the view.
Default style attribute for styling.
Inheritors
Types
CoordinatorLayout Behavior for FloatingGroupLayout reacting to AppBarLayout changes.
Default FloatingAware implementation for FloatingGroupLayout.
Listener interface for observing layout alpha animation events.
Container view that hosts projection background items for items inside floating toolbars.
Properties
true to apply blur effects to item projection background shapes.
true to block pre-draw blur invalidations during hidden or detached states.
Custom elevation padding rectangle applied to this container.
true to allow show/hide transitions triggered by content scrolling.
true to enable hardware-accelerated canvas blur on target views.
FloatingAnimationConfig defining animation durations and interpolators.
Custom FloatingAware implementation providing reference views and bounds insets for item projection. Ensure that the relevant reference views are already visible when invoking this.
Custom override setting whether fading edge bottom offset is managed automatically.
Custom override setting whether GoToTop button offset is managed automatically.
Pre-draw listener used to invalidate registered blur target views when position changes.
The inner SeslProjectionView hosting projection background shapes.
true to animate item projection backgrounds into view on initial layout.
true to skip layout and projection background animations.
Current target alpha value for layout visibility animations.
Bottom window inset pixel value passed down to FloatingScrollableManager. for adjusting bottom boundary for scrollbars, hover scroller and goToTop button.
true if this floating layout coordinates with an AppBarLayout.
Functions
Adds views to be invalidated when blur region updates.
Adds a view to be invalidated when blur region updates.
Adds an animator listener for projection background matching animations.
Registers a FloatingLayoutStateChangeListener.
Intercepts child view addition to ensure projection view is placed at index 0.
Animates elevation and blur curve for floating background shapes.
Applies background blur info across registered blur target views.
Called to apply layout options to the managed scrollable view, namely:
Evaluates scroll delta and triggers show or hide transitions accordingly.
Checks dependency on AppBarLayout and updates withAppBarLayout.
Clears background blur info across registered blur target views.
Clears all registered blur target views.
Clears the attached scrollable view from the manager.
Clears all registered FloatingLayoutStateChangeListener instances.
Unregisters the attached NestedScrollView.
Unregisters the attached RecyclerView.
Unregisters the attached scrollable content view.
Disables dynamic GoToTop offset adjustments.
Configures whether automatic fading edge bottom offset is enabled. This is enabled by default.
Enables dynamic GoToTop offset adjustments. This is disabled by default.
Configures whether scroll transitions are enabled.
Sends callbacks to FloatingAware for starting show or hide transitions.
Finds the attached AppBarLayout from parent CoordinatorLayout.
Finds the AppBarLayout among dependency views in a CoordinatorLayout.
Returns the CoordinatorLayout behavior for this floating container.
Active FloatingScrollableManager coordinating scroll events and bounds.
Returns active registered NestedScrollView or null.
Returns active registered RecyclerView or null.
Returns the current visible state of this layout.
Invalidates all target views that depend on background blur recalculation.
Returns true if blur is currently applied to any registered blur target view.
Returns true if floating item background is visible (alpha == 1.0).
Returns whether target blur views need invalidation.
Called when the attached AppBarLayout offset changes.
Intercepts touch events when layout is not fully visible.
Removes a blur target view from invalidation tracking.
Removes blur target views from invalidation tracking.
Removes a registered FloatingLayoutStateChangeListener.
Resets accumulated scroll distance used for hide transition triggers.
Sets blur mode across registered blur target views.
Sets the background color for all floating projection items.
Sets elevation for floating background projection shapes.
Sets corner radius for floating background projection shapes.
Sets the scrollable adapter for interacting with scrollable content views.
Registers an OnAlphaAnimationListener.
Sets the visibility state of the floating layout.
Attaches a NestedScrollView to this floating layout container.
Calculates and applies elevation padding.
Attaches a RecyclerView to this floating layout container.
Sets tint color for all floating background projection shapes.
Sets the bottom window inset pixel value for adjusting bottom boundary for scrollbars, hover scroller and goToTop button. Requires manageGoToTopOffset to be enabled.
Shows or hides floating item projection backgrounds.
Starts item projection background matching animation.
Starts the delayed post-show runnable.
Starts a spring scale animation on the floating container and its reference views.
Internal implementation of spring scale animation using SpringAnimation.
Cancels the delayed post-show runnable.