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: ClipPathProviderClipPathProvider provides the path used for clipping. |
| currentRevealPercent | var currentRevealPercent: FloatPercentage of the view currently revealed. |
| hideAnimationDuration | var hideAnimationDuration: LongTotal duration of the hide animation. |
| onUpdateListener | var onUpdateListener: RevealLayout.OnUpdateListener?Listener to get percent value updates when animating. |
| revealAnimationDuration | var revealAnimationDuration: LongTotal duration of the reveal animation. |
Functions
| Name | Summary |
|---|---|
| draw | fun draw(canvas: Canvas?): UnitOverriden from View |
| hide | fun hide(): UnitUsed to perform hide animation. |
| reveal | fun reveal(): UnitUsed to perform reveal animation. |
| revealForPercentage | fun revealForPercentage(percent: Float, shouldAnimate: Boolean): UnitReveal view to specified reveal percentage. |