easyreveal / com.jem.easyreveal.layouts / EasyRevealFrameLayout

EasyRevealFrameLayout

class EasyRevealFrameLayout : FrameLayout, RevealLayout

EasyRevealinearLayout is a custom FrameLayout that implements RevealLayout.

Constructors

Name Summary
<init> EasyRevealFrameLayout(context: Context)
EasyRevealFrameLayout(context: Context, attrs: AttributeSet?)
EasyRevealFrameLayout(context: Context, attrs: AttributeSet?, defStyleAttr: Int)
EasyRevealFrameLayout(context: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int)

Properties

Name Summary
clipPathProvider var clipPathProvider: ClipPathProvider
ClipPathProvider provides the path used for clipping.
currentRevealPercent var currentRevealPercent: Float
Percentage of the view currently revealed.
hideAnimationDuration var hideAnimationDuration: Long
Total duration of the hide animation.
onUpdateListener var onUpdateListener: RevealLayout.OnUpdateListener?
Listener to get percent value updates when animating.
revealAnimationDuration var revealAnimationDuration: Long
Total duration of the reveal animation.

Functions

Name Summary
draw fun draw(canvas: Canvas?): Unit
Overriden from View
hide fun hide(): Unit
Used to perform hide animation.
reveal fun reveal(): Unit
Used to perform reveal animation.
revealForPercentage fun revealForPercentage(percent: Float, shouldAnimate: Boolean): Unit
Reveal view to specified reveal percentage.