ExpandCollapseAnimationHelper

A helper class that facilitates expand and collapse animations between two views.

Constructors

Link copied to clipboard
constructor(@NonNull collapsedView: View, @NonNull expandedView: View)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
It's important that the expandedView has been measured (ie is not GONE) before this Animator is run, or else it will not expand to the correct size.
Link copied to clipboard
Link copied to clipboard
@CanIgnoreReturnValue
open fun setCollapsedViewOffsetY(collapsedViewOffsetY: Int): ExpandCollapseAnimationHelper
Link copied to clipboard
@CanIgnoreReturnValue
open fun setDuration(duration: Long): ExpandCollapseAnimationHelper
Link copied to clipboard
@CanIgnoreReturnValue
open fun setExpandedViewOffsetY(expandedViewOffsetY: Int): ExpandCollapseAnimationHelper