BottomBehavior

class BottomBehavior(val context: Context, mode: FloatingPane.FloatingPaneMode, callBackNotifier: FloatingPaneCallbackNotifier, val viewModel: FloatingPaneViewModel, resizeTouchSize: Int) : CommonBehavior

Behavior class for the Bottom mode of the FloatingPane. This class handles the specific behaviors and interactions for the FloatingPane when it's in Bottom mode.

Parameters

context

The context used to access resources and system services.

mode

The current mode of the FloatingPane.

callBackNotifier

The notifier for FloatingPane callbacks.

viewModel

The ViewModel associated with the FloatingPane.

resizeTouchSize

The size of the touch area for resizing.

Constructors

Link copied to clipboard
constructor(context: Context, mode: FloatingPane.FloatingPaneMode, callBackNotifier: FloatingPaneCallbackNotifier, viewModel: FloatingPaneViewModel, resizeTouchSize: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var customMaxWidth: Int?
Link copied to clipboard
open override var customMinimizeWidth: Int?
Link copied to clipboard
open override var customMinWidth: Int?
Link copied to clipboard
open override var customWidth: Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var requestedWidth: Int
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getBackgroundResId(): Int
Link copied to clipboard
open override fun getHideSpringAnimation(context: Context, target: View): SpringAnimation
Link copied to clipboard
open override fun getMenuLayoutResId(): Int
Link copied to clipboard
open override fun getMinimizeRect(minimize: Boolean, from: Rect): Rect
Link copied to clipboard
open override fun getResizePinDirectionFlags(): Int
Link copied to clipboard
open override fun getShowSpringAnimation(context: Context, target: View): SpringAnimation
Link copied to clipboard
open override fun getTargetModeBounds(view: View, moveValidArea: Boolean): Rect
Link copied to clipboard
open override fun isMinimizableRect(newRect: Rect): Boolean
Link copied to clipboard
open override fun isSupportMinimize(): Boolean
Link copied to clipboard
open override fun shouldInterceptTouch(view: View, event: MotionEvent): Boolean
Link copied to clipboard
open override fun updateBehavior(parent: View)
Link copied to clipboard
open override fun updateLayoutParams(view: View)
Link copied to clipboard
open override fun updateMinimize(view: View): Boolean
Link copied to clipboard
open override fun updateState(view: View, event: MotionEvent)