Skip to content

View based on ConstraintLayout for displaying different states

Notifications You must be signed in to change notification settings

yzheka/MultiStateView

Repository files navigation

MultiStateView

see app module for sample

View supports following attributes:

Attribute Description
inAnimation sets the animation to use when view is shown
outAnimation sets the animation to use when view is hidden
animationsEnabled enables or disables animations
inAnimationDuration overrides in animation duration
outAnimationDuration overrides out animation duration
initialState sets the state that will be used at the beginning

Each child of this view supports fillowing attributes:

Attribute Description
layout_state The state at which to show this child
layout_hideStrategy The way how to hide this child (gone or invisible)

Demo:

About

View based on ConstraintLayout for displaying different states

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages