Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for View Transitions #54

Open
sjcqs opened this issue May 19, 2020 · 1 comment
Open

Add support for View Transitions #54

sjcqs opened this issue May 19, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@sjcqs
Copy link
Contributor

sjcqs commented May 19, 2020

  • Create a new library: com.fabernovel.statefullayout:statefullayout-material-motion
  • KTX extension on StatefulLayout:
    showState(stateId: Int, transition: Transition)

The function will:

  1. Call TransitionManager.beginDelayedTransition(this@StatefulLayout, transition)
  2. Call showState(stateId, false) to disable lib transition

cf https://github.com/material-components/material-components-android/blob/master/docs/theming/Motion.md

@sjcqs sjcqs added the enhancement New feature or request label May 19, 2020
@sjcqs
Copy link
Contributor Author

sjcqs commented May 20, 2020

Supporting androidTransition should be enough

@sjcqs sjcqs changed the title Add a lib supporting for Material Motion (alpha) Add a lib supporting for View Transitions May 20, 2020
@sjcqs sjcqs changed the title Add a lib supporting for View Transitions Add support for View Transitions May 25, 2020
@sjcqs sjcqs added this to the v1.1 milestone May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant