stepstone-tech / android-material-stepper

This library allows to use Material steppers inside Android applications.
Apache License 2.0
1.78k stars 263 forks source link

Add listeners when on back & on complete #224

Closed durey closed 7 years ago

durey commented 7 years ago

Make sure these boxes are checked before submitting your issue - thank you!

Can I create a pull request providing callbacks when user clicks on Back & Complete buttons? Quite useful depending on the needs and transparent to current uses. I have the changes already prepared! Thank you for your time!

zawadz88 commented 7 years ago

Hi @durey, Thanks for contributing! I have a question though - how would that be different from what's described in https://github.com/stepstone-tech/android-material-stepper#making-extra-operations-before-going-to-the-next-step ?

durey commented 7 years ago

@zawadz88 Sorry, I see now I didn't explain myself properly (sorry, I am doing a lot of different things at the same time... 😓 ).

What I would like is to emulate the "Continue" click from the Activity, not only from inside the Fragment. That way, all the code defined in the BlockingStep.onNextClicked would be executed as if the user would have clicked on "Continue". Can we currently achieve that?

I've tried with stepperLayout.onNextClickedOut(), but it doesn't seem to work.

zawadz88 commented 7 years ago

Hi, I'm not quite sure what you mean, but I guess it's best to see it if you have the changes already ready. So please go ahead and submit a PR :)

Thanks

durey commented 7 years ago

Mmm, never mind! I solved it in a different way without the need of twerking the library. Sorry for wasting your time here, I close this! Thank you for everything!