easyreveal / com.jem.easyreveal.layouts / EasyRevealConstraintLayout
EasyRevealConstraintLayout
class EasyRevealConstraintLayout : ConstraintLayout,
RevealLayout
EasyRevealinearLayout
is a custom ConstraintLayout that implements RevealLayout.
Constructors
Name | Summary |
---|---|
<init> | EasyRevealConstraintLayout(context: Context?) EasyRevealConstraintLayout(context: Context?, attrs: AttributeSet?) EasyRevealConstraintLayout(context: Context?, attrs: AttributeSet?, defStyleAttr: 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. |