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

Possibility to add custom element. #2

Open
ghost opened this issue Jan 10, 2018 · 4 comments
Open

Possibility to add custom element. #2

ghost opened this issue Jan 10, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 10, 2018

I was checking out the library it's good but i have a special inquiry that i don't know there is a way to have it or not. I am trying to have a lottie animation for loading but as far as i understood the way to have a custom view is to use canvas which doesn't seems to be able to draw a custom element. Do you have any suggestion on this?

@tylersuehr7
Copy link
Owner

tylersuehr7 commented Jan 10, 2018 via email

@ghost
Copy link
Author

ghost commented Jan 10, 2018

Thanks for the response. I have seen the mentioned API as you said and would work good for some situations. But if there was a way to render a ViewGroup as a state on future versions it would give a lot of freedom not only on animation but on the other customization parts too. Lottie offers many great features on animationing plus it has a great library of premade animations that i didn't find something compared to it in android. (www.lottiefiles.com)

@tylersuehr7
Copy link
Owner

tylersuehr7 commented Jan 10, 2018 via email

@ghost
Copy link
Author

ghost commented Jan 10, 2018

Canvas is the api to draw on a view but i'm thinking instead of we could have different views for each state then we would have the freedom to create any kind of layout we want to. I don't think it would be that hard. only another constructor for AbstractStateDisplay that draws the returned View for the state would be good. I appreciate your work and hope you the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant