Responsive Pane Layout
An adaptive Samsung One UI container layout extending ConstraintLayout that manages side navigation drawers and content panes, supporting responsive pane states (OPENED, CLOSED) across tablet, foldable, and desktop screens.
Integrates with One UI elevation concepts, back handling via OnBackInvokedDispatcher, and drag gestures. Use a ResponsiveDrawerLayout with ID responsive_pane_drawer and a content container with ID responsive_pane_content. The drawer must be a direct child for drag capture.
Use ResponsivePaneListener to observe transitions, including those initiated by gestures.
Parameters
context used to resolve resources and create child behavior.
optional XML attributes passed to ConstraintLayout.
default style attribute passed to ConstraintLayout.
Types
Receives state and slide notifications for the drawer currently managed by the layout.
Properties
Functions
Adds focusable views, restricting focus to the drawer while it is opened in modal mode.
Registers listener for drawer state and slide changes. Duplicate registrations are ignored.
Adds a child, clearing cached drawer behavior and applying elevation for drawer children.
Advances controller settling and schedules another animation frame when needed.
Returns the configuration currently stored for paneState.
Returns whether the controller reports PaneState.OPENED.
Returns whether interaction with content outside an opened drawer is enabled.
Asks the controller whether to intercept event, falling back to the superclass if undecided.
Passes event to the controller, falling back to the superclass if undecided.
Unregisters listener; removing an unregistered listener has no effect.
Controls interaction with content outside an opened drawer.
Stores a configuration for paneState, applying it without animation if that state is current.
Swaps the pane behavior strategy driving width, drag and elevation.
Reapplies responsive constraints for the current pane state.