inboxrecyclerview
Module Contents
alltypes
Module Contents
abstract
class
BaseExpandablePageLayout
:
RelativeLayout
Module Contents
BaseExpandablePageLayout
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
)
fun
animateDimensions
(
toWidth
:
Int
,
toHeight
:
Int
)
:
Unit
var
animationDurationMillis
:
Long
var
animationInterpolator
:
TimeInterpolator
val
clippedDimens
:
Rect
protected
open
fun
onSizeChanged
(
w
:
Int
,
h
:
Int
,
oldw
:
Int
,
oldh
:
Int
)
:
Unit
fun
resetClipping
(
)
:
Unit
fun
setClippedDimensions
(
newClippedWidth
:
Int
,
newClippedHeight
:
Int
)
:
Unit
class
CompleteListTintPainter
:
UncoveredAreaTintPainter
Module Contents
CompleteListTintPainter
(
color
:
Int
,
opacity
:
Float
)
fun
drawTint
(
canvas
:
Canvas
)
:
Unit
open
class
ExpandablePageLayout
:
BaseExpandablePageLayout
,
OnPullListener
Module Contents
ExpandablePageLayout
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
)
enum
class
PageState
Module Contents
COLLAPSED
COLLAPSING
EXPANDED
EXPANDING
fun
addOnPullListener
(
listener
:
OnPullListener
)
:
Unit
fun
addStateChangeCallbacks
(
callbacks
:
PageStateChangeCallbacks
)
:
Unit
lateinit
var
currentState
:
PageState
open
fun
dispatchTouchEvent
(
ev
:
MotionEvent
)
:
Boolean
open
fun
draw
(
canvas
:
Canvas
)
:
Unit
protected
open
fun
drawChild
(
canvas
:
Canvas
,
child
:
View
,
drawingTime
:
Long
)
:
Boolean
open
fun
hasOverlappingRendering
(
)
:
Boolean
val
isCollapsed
:
Boolean
val
isCollapsedOrCollapsing
:
Boolean
val
isCollapsing
:
Boolean
val
isExpanded
:
Boolean
val
isExpandedOrExpanding
:
Boolean
val
isExpanding
:
Boolean
val
isExpandingOrCollapsing
:
Boolean
protected
open
fun
onAttachedToWindow
(
)
:
Unit
protected
open
fun
onDetachedFromWindow
(
)
:
Unit
open
fun
onInterceptTouchEvent
(
event
:
MotionEvent
)
:
Boolean
protected
open
fun
onPageAboutToCollapse
(
collapseAnimDuration
:
Long
)
:
Unit
protected
open
fun
onPageAboutToExpand
(
expandAnimDuration
:
Long
)
:
Unit
protected
open
fun
onPageCollapsed
(
)
:
Unit
protected
open
fun
onPageExpanded
(
)
:
Unit
open
fun
onPull
(
deltaY
:
Float
,
currentTranslationY
:
Float
,
upwardPull
:
Boolean
,
deltaUpwardPull
:
Boolean
,
collapseEligible
:
Boolean
)
:
Unit
open
fun
onRelease
(
collapseEligible
:
Boolean
)
:
Unit
open
fun
onTouchEvent
(
event
:
MotionEvent
)
:
Boolean
var
parentToolbar
:
View
?
var
pullToCollapseEnabled
:
Boolean
var
pullToCollapseInterceptor
:
OnPullToCollapseInterceptor
val
pullToCollapseListener
:
PullToCollapseListener
var
pullToCollapseThresholdDistance
:
Int
fun
pushParentToolbarOnExpand
(
toolbar
:
Toolbar
)
:
Unit
fun
removeOnPullListener
(
pullListener
:
OnPullListener
)
:
Unit
fun
removeStateChangeCallbacks
(
callbacks
:
PageStateChangeCallbacks
)
:
Unit
fun
setNestedExpandablePage
(
nestedPage
:
ExpandablePageLayout
)
:
Unit
class
InboxRecyclerView
:
ScrollSuppressibleRecyclerView
,
InternalPageCallbacks
Module Contents
InboxRecyclerView
(
context
:
Context
,
attrs
:
AttributeSet
)
data
class
ExpandedItem
:
Parcelable
Module Contents
ExpandedItem
(
viewIndex
:
Int
,
itemId
:
Long
,
expandedItemLocationRect
:
Rect
)
val
expandedItemLocationRect
:
Rect
val
itemId
:
Long
val
viewIndex
:
Int
fun
canScrollProgrammatically
(
)
:
Boolean
fun
collapse
(
)
:
Unit
fun
dispatchTouchEvent
(
ev
:
MotionEvent
?
)
:
Boolean
fun
draw
(
canvas
:
Canvas
)
:
Unit
@JvmOverloads
fun
expandFromTop
(
immediate
:
Boolean
=
false
)
:
Unit
@JvmOverloads
fun
expandItem
(
itemId
:
Long
,
immediate
:
Boolean
=
false
)
:
Unit
var
expandedItem
:
ExpandedItem
var
itemExpandAnimator
:
ItemExpandAnimator
protected
fun
onDetachedFromWindow
(
)
:
Unit
fun
onPageAboutToCollapse
(
)
:
Unit
fun
onPageAboutToExpand
(
)
:
Unit
fun
onPageCollapsed
(
)
:
Unit
fun
onPageFullyCovered
(
)
:
Unit
fun
onPagePull
(
deltaY
:
Float
)
:
Unit
fun
onPageRelease
(
collapseEligible
:
Boolean
)
:
Unit
protected
fun
onRestoreInstanceState
(
state
:
Parcelable
)
:
Unit
protected
fun
onSaveInstanceState
(
)
:
Parcelable
protected
fun
onSizeChanged
(
w
:
Int
,
h
:
Int
,
oldw
:
Int
,
oldh
:
Int
)
:
Unit
fun
optimizeActivityBackgroundOverdraw
(
activity
:
Activity
)
:
Unit
lateinit
var
page
:
ExpandablePageLayout
fun
setAdapter
(
adapter
:
Adapter
<
*
>
?
)
:
Unit
fun
setExpandablePage
(
page
:
ExpandablePageLayout
)
:
Unit
fun
setExpandablePage
(
page
:
ExpandablePageLayout
,
@Px
collapseDistanceThreshold
:
Int
)
:
Unit
fun
swapAdapter
(
adapter
:
Adapter
<
*
>
?
,
removeAndRecycleExistingViews
:
Boolean
)
:
Unit
var
tintPainter
:
TintPainter
enum
class
InterceptResult
Module Contents
IGNORED
INTERCEPTED
abstract
class
ItemExpandAnimator
Module Contents
ItemExpandAnimator
(
)
fun
onAttachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
fun
onDetachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
abstract
fun
onPageMove
(
)
:
Unit
protected
lateinit
var
recyclerView
:
InboxRecyclerView
@JvmStatic
fun
split
(
)
:
SplitExpandAnimator
typealias
OnPullToCollapseInterceptor
=
(
downX
:
Float
,
downY
:
Float
,
upwardPull
:
Boolean
)
->
InterceptResult
interface
PageStateChangeCallbacks
Module Contents
abstract
fun
onPageAboutToCollapse
(
collapseAnimDuration
:
Long
)
:
Unit
abstract
fun
onPageAboutToExpand
(
expandAnimDuration
:
Long
)
:
Unit
abstract
fun
onPageCollapsed
(
)
:
Unit
abstract
fun
onPageExpanded
(
)
:
Unit
abstract
class
PullCollapsibleActivity
:
AppCompatActivity
Module Contents
PullCollapsibleActivity
(
)
protected
fun
expandFrom
(
fromRect
:
Rect
)
:
Unit
protected
fun
expandFromTop
(
)
:
Unit
open
fun
finish
(
)
:
Unit
protected
open
fun
onCreate
(
savedInstanceState
:
Bundle
?
)
:
Unit
open
fun
onOptionsItemSelected
(
item
:
MenuItem
)
:
Boolean
protected
open
fun
onStart
(
)
:
Unit
open
fun
setContentView
(
layoutResID
:
Int
)
:
Unit
open
fun
setContentView
(
view
:
View
)
:
Unit
open
fun
setContentView
(
view
:
View
,
params
:
LayoutParams
)
:
Unit
fun
setEntryAnimationEnabled
(
entryAnimationEnabled
:
Boolean
)
:
Unit
protected
fun
setPullToCollapseEnabled
(
enabled
:
Boolean
)
:
Unit
class
PullToCollapseListener
:
OnTouchListener
Module Contents
PullToCollapseListener
(
context
:
Context
,
expandablePage
:
ExpandablePageLayout
)
interface
OnPullListener
Module Contents
abstract
fun
onPull
(
deltaY
:
Float
,
currentTranslationY
:
Float
,
upwardPull
:
Boolean
,
deltaUpwardPull
:
Boolean
,
collapseEligible
:
Boolean
)
:
Unit
abstract
fun
onRelease
(
collapseEligible
:
Boolean
)
:
Unit
fun
addOnPullListener
(
listener
:
OnPullListener
)
:
Unit
var
collapseDistanceThreshold
:
Int
fun
onTouch
(
v
:
View
,
event
:
MotionEvent
)
:
Boolean
fun
removeOnPullListener
(
listener
:
OnPullListener
)
:
Unit
abstract
class
ScrollSuppressibleRecyclerView
:
RecyclerView
Module Contents
ScrollSuppressibleRecyclerView
(
context
:
Context
,
attrs
:
AttributeSet
?
)
abstract
fun
canScrollProgrammatically
(
)
:
Boolean
open
fun
scrollBy
(
x
:
Int
,
y
:
Int
)
:
Unit
open
fun
scrollTo
(
x
:
Int
,
y
:
Int
)
:
Unit
open
fun
scrollToPosition
(
position
:
Int
)
:
Unit
open
fun
smoothScrollBy
(
dx
:
Int
,
dy
:
Int
)
:
Unit
open
fun
smoothScrollToPosition
(
position
:
Int
)
:
Unit
abstract
class
SimpleOnPullListener
:
OnPullListener
Module Contents
SimpleOnPullListener
(
)
open
fun
onPull
(
deltaY
:
Float
,
currentTranslationY
:
Float
,
upwardPull
:
Boolean
,
deltaUpwardPull
:
Boolean
,
collapseEligible
:
Boolean
)
:
Unit
open
fun
onRelease
(
collapseEligible
:
Boolean
)
:
Unit
abstract
class
SimplePageStateChangeCallbacks
:
PageStateChangeCallbacks
Module Contents
SimplePageStateChangeCallbacks
(
)
open
fun
onPageAboutToCollapse
(
collapseAnimDuration
:
Long
)
:
Unit
open
fun
onPageAboutToExpand
(
expandAnimDuration
:
Long
)
:
Unit
open
fun
onPageCollapsed
(
)
:
Unit
open
fun
onPageExpanded
(
)
:
Unit
open
class
SplitExpandAnimator
:
ItemExpandAnimator
Module Contents
SplitExpandAnimator
(
)
open
fun
applyAlphaOnAnchorView
(
anchorView
:
View
,
expandRatio
:
Float
)
:
Unit
open
fun
moveListItems
(
anchorIndex
:
Int
,
distanceExpandedTowardsTop
:
Float
,
distanceExpandedTowardsBottom
:
Float
)
:
Unit
open
fun
onPageMove
(
)
:
Unit
class
StandaloneExpandablePageLayout
:
ExpandablePageLayout
Module Contents
StandaloneExpandablePageLayout
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
)
protected
fun
onLayout
(
changed
:
Boolean
,
l
:
Int
,
t
:
Int
,
r
:
Int
,
b
:
Int
)
:
Unit
abstract
class
TintPainter
Module Contents
TintPainter
(
)
@JvmStatic
@JvmOverloads
fun
completeList
(
color
:
Int
=
Color.BLACK
,
opacity
:
Float
=
0.15F
)
:
TintPainter
abstract
fun
drawTint
(
canvas
:
Canvas
)
:
Unit
@JvmStatic
fun
noOp
(
)
:
TintPainter
abstract
fun
onAttachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
abstract
fun
onDetachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
@JvmStatic
@JvmOverloads
fun
uncoveredArea
(
color
:
Int
=
Color.BLACK
,
opacity
:
Float
=
0.15F
)
:
TintPainter
open
class
UncoveredAreaTintPainter
:
TintPainter
,
PageStateChangeCallbacks
Module Contents
UncoveredAreaTintPainter
(
color
:
Int
,
opacity
:
Float
)
open
fun
drawTint
(
canvas
:
Canvas
)
:
Unit
open
fun
onAttachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
open
fun
onDetachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
open
fun
onPageAboutToCollapse
(
collapseAnimDuration
:
Long
)
:
Unit
open
fun
onPageAboutToExpand
(
expandAnimDuration
:
Long
)
:
Unit
open
fun
onPageCollapsed
(
)
:
Unit
open
fun
onPageExpanded
(
)
:
Unit
protected
lateinit
var
recyclerView
:
InboxRecyclerView
protected
val
tintPaint
:
Paint
android.view.View
Module Contents
fun
View
.
executeOnMeasure
(
listener
:
(
)
->
Unit
)
:
Unit
fun
View
.
executeOnNextLayout
(
listener
:
(
)
->
Unit
)
:
Unit
fun
View
.
globalVisibleRect
(
)
:
RectF
android.view.ViewPropertyAnimator
Module Contents
fun
ViewPropertyAnimator
.
withEndAction
(
action
:
(
Boolean
)
->
Unit
)
:
ViewPropertyAnimator
package
me.saket.inboxrecyclerview
Module Contents
class
InboxRecyclerView
:
ScrollSuppressibleRecyclerView
,
InternalPageCallbacks
Module Contents
InboxRecyclerView
(
context
:
Context
,
attrs
:
AttributeSet
)
data
class
ExpandedItem
:
Parcelable
Module Contents
ExpandedItem
(
viewIndex
:
Int
,
itemId
:
Long
,
expandedItemLocationRect
:
Rect
)
val
expandedItemLocationRect
:
Rect
val
itemId
:
Long
val
viewIndex
:
Int
fun
canScrollProgrammatically
(
)
:
Boolean
fun
collapse
(
)
:
Unit
fun
dispatchTouchEvent
(
ev
:
MotionEvent
?
)
:
Boolean
fun
draw
(
canvas
:
Canvas
)
:
Unit
@JvmOverloads
fun
expandFromTop
(
immediate
:
Boolean
=
false
)
:
Unit
@JvmOverloads
fun
expandItem
(
itemId
:
Long
,
immediate
:
Boolean
=
false
)
:
Unit
var
expandedItem
:
ExpandedItem
var
itemExpandAnimator
:
ItemExpandAnimator
protected
fun
onDetachedFromWindow
(
)
:
Unit
fun
onPageAboutToCollapse
(
)
:
Unit
fun
onPageAboutToExpand
(
)
:
Unit
fun
onPageCollapsed
(
)
:
Unit
fun
onPageFullyCovered
(
)
:
Unit
fun
onPagePull
(
deltaY
:
Float
)
:
Unit
fun
onPageRelease
(
collapseEligible
:
Boolean
)
:
Unit
protected
fun
onRestoreInstanceState
(
state
:
Parcelable
)
:
Unit
protected
fun
onSaveInstanceState
(
)
:
Parcelable
protected
fun
onSizeChanged
(
w
:
Int
,
h
:
Int
,
oldw
:
Int
,
oldh
:
Int
)
:
Unit
fun
optimizeActivityBackgroundOverdraw
(
activity
:
Activity
)
:
Unit
lateinit
var
page
:
ExpandablePageLayout
fun
setAdapter
(
adapter
:
Adapter
<
*
>
?
)
:
Unit
fun
setExpandablePage
(
page
:
ExpandablePageLayout
)
:
Unit
fun
setExpandablePage
(
page
:
ExpandablePageLayout
,
@Px
collapseDistanceThreshold
:
Int
)
:
Unit
fun
swapAdapter
(
adapter
:
Adapter
<
*
>
?
,
removeAndRecycleExistingViews
:
Boolean
)
:
Unit
var
tintPainter
:
TintPainter
abstract
class
PullCollapsibleActivity
:
AppCompatActivity
Module Contents
PullCollapsibleActivity
(
)
protected
fun
expandFrom
(
fromRect
:
Rect
)
:
Unit
protected
fun
expandFromTop
(
)
:
Unit
open
fun
finish
(
)
:
Unit
protected
open
fun
onCreate
(
savedInstanceState
:
Bundle
?
)
:
Unit
open
fun
onOptionsItemSelected
(
item
:
MenuItem
)
:
Boolean
protected
open
fun
onStart
(
)
:
Unit
open
fun
setContentView
(
layoutResID
:
Int
)
:
Unit
open
fun
setContentView
(
view
:
View
)
:
Unit
open
fun
setContentView
(
view
:
View
,
params
:
LayoutParams
)
:
Unit
fun
setEntryAnimationEnabled
(
entryAnimationEnabled
:
Boolean
)
:
Unit
protected
fun
setPullToCollapseEnabled
(
enabled
:
Boolean
)
:
Unit
abstract
class
ScrollSuppressibleRecyclerView
:
RecyclerView
Module Contents
ScrollSuppressibleRecyclerView
(
context
:
Context
,
attrs
:
AttributeSet
?
)
abstract
fun
canScrollProgrammatically
(
)
:
Boolean
open
fun
scrollBy
(
x
:
Int
,
y
:
Int
)
:
Unit
open
fun
scrollTo
(
x
:
Int
,
y
:
Int
)
:
Unit
open
fun
scrollToPosition
(
position
:
Int
)
:
Unit
open
fun
smoothScrollBy
(
dx
:
Int
,
dy
:
Int
)
:
Unit
open
fun
smoothScrollToPosition
(
position
:
Int
)
:
Unit
android.view.View
Module Contents
fun
View
.
executeOnMeasure
(
listener
:
(
)
->
Unit
)
:
Unit
fun
View
.
executeOnNextLayout
(
listener
:
(
)
->
Unit
)
:
Unit
fun
View
.
globalVisibleRect
(
)
:
RectF
android.view.ViewPropertyAnimator
Module Contents
fun
ViewPropertyAnimator
.
withEndAction
(
action
:
(
Boolean
)
->
Unit
)
:
ViewPropertyAnimator
package
me.saket.inboxrecyclerview.animation
Module Contents
abstract
class
ItemExpandAnimator
Module Contents
ItemExpandAnimator
(
)
fun
onAttachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
fun
onDetachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
abstract
fun
onPageMove
(
)
:
Unit
protected
lateinit
var
recyclerView
:
InboxRecyclerView
@JvmStatic
fun
split
(
)
:
SplitExpandAnimator
open
class
SplitExpandAnimator
:
ItemExpandAnimator
Module Contents
SplitExpandAnimator
(
)
open
fun
applyAlphaOnAnchorView
(
anchorView
:
View
,
expandRatio
:
Float
)
:
Unit
open
fun
moveListItems
(
anchorIndex
:
Int
,
distanceExpandedTowardsTop
:
Float
,
distanceExpandedTowardsBottom
:
Float
)
:
Unit
open
fun
onPageMove
(
)
:
Unit
package
me.saket.inboxrecyclerview.dimming
Module Contents
class
CompleteListTintPainter
:
UncoveredAreaTintPainter
Module Contents
CompleteListTintPainter
(
color
:
Int
,
opacity
:
Float
)
fun
drawTint
(
canvas
:
Canvas
)
:
Unit
abstract
class
TintPainter
Module Contents
TintPainter
(
)
@JvmStatic
@JvmOverloads
fun
completeList
(
color
:
Int
=
Color.BLACK
,
opacity
:
Float
=
0.15F
)
:
TintPainter
abstract
fun
drawTint
(
canvas
:
Canvas
)
:
Unit
@JvmStatic
fun
noOp
(
)
:
TintPainter
abstract
fun
onAttachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
abstract
fun
onDetachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
@JvmStatic
@JvmOverloads
fun
uncoveredArea
(
color
:
Int
=
Color.BLACK
,
opacity
:
Float
=
0.15F
)
:
TintPainter
open
class
UncoveredAreaTintPainter
:
TintPainter
,
PageStateChangeCallbacks
Module Contents
UncoveredAreaTintPainter
(
color
:
Int
,
opacity
:
Float
)
open
fun
drawTint
(
canvas
:
Canvas
)
:
Unit
open
fun
onAttachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
open
fun
onDetachRecyclerView
(
recyclerView
:
InboxRecyclerView
)
:
Unit
open
fun
onPageAboutToCollapse
(
collapseAnimDuration
:
Long
)
:
Unit
open
fun
onPageAboutToExpand
(
expandAnimDuration
:
Long
)
:
Unit
open
fun
onPageCollapsed
(
)
:
Unit
open
fun
onPageExpanded
(
)
:
Unit
protected
lateinit
var
recyclerView
:
InboxRecyclerView
protected
val
tintPaint
:
Paint
package
me.saket.inboxrecyclerview.page
Module Contents
abstract
class
BaseExpandablePageLayout
:
RelativeLayout
Module Contents
BaseExpandablePageLayout
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
)
fun
animateDimensions
(
toWidth
:
Int
,
toHeight
:
Int
)
:
Unit
var
animationDurationMillis
:
Long
var
animationInterpolator
:
TimeInterpolator
val
clippedDimens
:
Rect
protected
open
fun
onSizeChanged
(
w
:
Int
,
h
:
Int
,
oldw
:
Int
,
oldh
:
Int
)
:
Unit
fun
resetClipping
(
)
:
Unit
fun
setClippedDimensions
(
newClippedWidth
:
Int
,
newClippedHeight
:
Int
)
:
Unit
open
class
ExpandablePageLayout
:
BaseExpandablePageLayout
,
OnPullListener
Module Contents
ExpandablePageLayout
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
)
enum
class
PageState
Module Contents
COLLAPSED
COLLAPSING
EXPANDED
EXPANDING
fun
addOnPullListener
(
listener
:
OnPullListener
)
:
Unit
fun
addStateChangeCallbacks
(
callbacks
:
PageStateChangeCallbacks
)
:
Unit
lateinit
var
currentState
:
PageState
open
fun
dispatchTouchEvent
(
ev
:
MotionEvent
)
:
Boolean
open
fun
draw
(
canvas
:
Canvas
)
:
Unit
protected
open
fun
drawChild
(
canvas
:
Canvas
,
child
:
View
,
drawingTime
:
Long
)
:
Boolean
open
fun
hasOverlappingRendering
(
)
:
Boolean
val
isCollapsed
:
Boolean
val
isCollapsedOrCollapsing
:
Boolean
val
isCollapsing
:
Boolean
val
isExpanded
:
Boolean
val
isExpandedOrExpanding
:
Boolean
val
isExpanding
:
Boolean
val
isExpandingOrCollapsing
:
Boolean
protected
open
fun
onAttachedToWindow
(
)
:
Unit
protected
open
fun
onDetachedFromWindow
(
)
:
Unit
open
fun
onInterceptTouchEvent
(
event
:
MotionEvent
)
:
Boolean
protected
open
fun
onPageAboutToCollapse
(
collapseAnimDuration
:
Long
)
:
Unit
protected
open
fun
onPageAboutToExpand
(
expandAnimDuration
:
Long
)
:
Unit
protected
open
fun
onPageCollapsed
(
)
:
Unit
protected
open
fun
onPageExpanded
(
)
:
Unit
open
fun
onPull
(
deltaY
:
Float
,
currentTranslationY
:
Float
,
upwardPull
:
Boolean
,
deltaUpwardPull
:
Boolean
,
collapseEligible
:
Boolean
)
:
Unit
open
fun
onRelease
(
collapseEligible
:
Boolean
)
:
Unit
open
fun
onTouchEvent
(
event
:
MotionEvent
)
:
Boolean
var
parentToolbar
:
View
?
var
pullToCollapseEnabled
:
Boolean
var
pullToCollapseInterceptor
:
OnPullToCollapseInterceptor
val
pullToCollapseListener
:
PullToCollapseListener
var
pullToCollapseThresholdDistance
:
Int
fun
pushParentToolbarOnExpand
(
toolbar
:
Toolbar
)
:
Unit
fun
removeOnPullListener
(
pullListener
:
OnPullListener
)
:
Unit
fun
removeStateChangeCallbacks
(
callbacks
:
PageStateChangeCallbacks
)
:
Unit
fun
setNestedExpandablePage
(
nestedPage
:
ExpandablePageLayout
)
:
Unit
val
IGNORE_ALL_PULL_TO_COLLAPSE_INTERCEPTOR
:
OnPullToCollapseInterceptor
enum
class
InterceptResult
Module Contents
IGNORED
INTERCEPTED
typealias
OnPullToCollapseInterceptor
=
(
downX
:
Float
,
downY
:
Float
,
upwardPull
:
Boolean
)
->
InterceptResult
interface
PageStateChangeCallbacks
Module Contents
abstract
fun
onPageAboutToCollapse
(
collapseAnimDuration
:
Long
)
:
Unit
abstract
fun
onPageAboutToExpand
(
expandAnimDuration
:
Long
)
:
Unit
abstract
fun
onPageCollapsed
(
)
:
Unit
abstract
fun
onPageExpanded
(
)
:
Unit
class
PullToCollapseListener
:
OnTouchListener
Module Contents
PullToCollapseListener
(
context
:
Context
,
expandablePage
:
ExpandablePageLayout
)
interface
OnPullListener
Module Contents
abstract
fun
onPull
(
deltaY
:
Float
,
currentTranslationY
:
Float
,
upwardPull
:
Boolean
,
deltaUpwardPull
:
Boolean
,
collapseEligible
:
Boolean
)
:
Unit
abstract
fun
onRelease
(
collapseEligible
:
Boolean
)
:
Unit
fun
addOnPullListener
(
listener
:
OnPullListener
)
:
Unit
var
collapseDistanceThreshold
:
Int
fun
onTouch
(
v
:
View
,
event
:
MotionEvent
)
:
Boolean
fun
removeOnPullListener
(
listener
:
OnPullListener
)
:
Unit
abstract
class
SimpleOnPullListener
:
OnPullListener
Module Contents
SimpleOnPullListener
(
)
open
fun
onPull
(
deltaY
:
Float
,
currentTranslationY
:
Float
,
upwardPull
:
Boolean
,
deltaUpwardPull
:
Boolean
,
collapseEligible
:
Boolean
)
:
Unit
open
fun
onRelease
(
collapseEligible
:
Boolean
)
:
Unit
abstract
class
SimplePageStateChangeCallbacks
:
PageStateChangeCallbacks
Module Contents
SimplePageStateChangeCallbacks
(
)
open
fun
onPageAboutToCollapse
(
collapseAnimDuration
:
Long
)
:
Unit
open
fun
onPageAboutToExpand
(
expandAnimDuration
:
Long
)
:
Unit
open
fun
onPageCollapsed
(
)
:
Unit
open
fun
onPageExpanded
(
)
:
Unit
class
StandaloneExpandablePageLayout
:
ExpandablePageLayout
Module Contents
StandaloneExpandablePageLayout
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
)
protected
fun
onLayout
(
changed
:
Boolean
,
l
:
Int
,
t
:
Int
,
r
:
Int
,
b
:
Int
)
:
Unit