ResponsiveDrawerLayout

class ResponsiveDrawerLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout, BlurSupportable, ResponsivePaneTag

A drawer layout component for ResponsivePaneLayout in Samsung One UI interfaces that supports elevation concepts, blur effects (BlurSupportable), and maximum width constraints.

Use ID responsive_pane_drawer when placing this view inside ResponsivePaneLayout.

Parameters

context

context used to resolve drawer resources.

attrs

optional XML attributes passed to FrameLayout.

defStyleAttr

default style attribute passed to FrameLayout.

Constructors

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

Properties

Link copied to clipboard
open override val logTag: String

Tag used for drawer log messages.

Link copied to clipboard

Width in pixels used to measure children while the drawer itself is resized.

Functions

Link copied to clipboard
open override fun applyBlurInfo(context: Context): Boolean

Applies drawer blur and the parent pane's current elevation concept.

open override fun applyBlurInfo(curveParameter: SemBlurCompat.CurveParameter): Boolean

Applies curveParameter as the drawer blur curve for both light and dark themes.

Link copied to clipboard
open override fun clearBlurInfo(context: Context)

Clears applied blur and its tracked state.

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

Returns whether this drawer tracks a successfully applied blur state.

Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent): Boolean

Consumes event so touches within the drawer do not fall through.

Link copied to clipboard
open override fun setBackground(background: Drawable?)

Sets background and retains it as the non-blur fallback.

Link copied to clipboard
open override fun setBlurMode(semBlurInfoMode: Int)

Stores semBlurInfoMode and reapplies drawer blur.