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