AdyenSwipeToRevealLayout

class AdyenSwipeToRevealLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : ViewGroup(source)

A swipeable view that contains two child views which are:

Underlay View: A View instance which is gonna be placed in the background and will be shown once user swipes the Main View from right to left. When defining your layout, your underlay view needs to be placed before your main view within AdyenSwipeToRevealLayout.

Main View: A View instance which is gonna be shown in the foreground. When defining your layout, your main view needs to be placed after your underlay view within AdyenSwipeToRevealLayout.

Example:

Constructors

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

Types

Link copied to clipboard
fun interface OnMainClickListener

A callback that gets triggered every time mainView gets clicked if underlay is hidden.

Link copied to clipboard
fun interface UnderlayListener

A callback interface that gets triggered every time underlayView gets expanded.

Functions

Link copied to clipboard

Collapse the underlayView with animation.

Link copied to clipboard
open override fun computeScroll()
Link copied to clipboard
open override fun onInterceptTouchEvent(ev: MotionEvent): Boolean
Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent): Boolean
Link copied to clipboard
Link copied to clipboard
fun setDragLocked(isDragLocked: Boolean)

Set drag locked state of this view.

Link copied to clipboard

Register a listener to be invoked when mainView is clicked.

Link copied to clipboard

Set UnderlayListener that will receive the notifications every time underlayView gets expanded.