Git Product home page Git Product logo

Comments (6)

drozdzynski avatar drozdzynski commented on August 24, 2024

For now, it's not available, but I will start making fixes and additions in few days, finally I have time to work on it, because of Christmas.

from steppers.

vayalasp avatar vayalasp commented on August 24, 2024

Thanks man. Meanwhile any clue on how can I do that myself?

from steppers.

olganazo avatar olganazo commented on August 24, 2024

Hi,
Thank you for this great lib.
When do you plan to release this enhancement ?

In the same idea as keeping track of user's process it would be great to have a onContinueAction in order to be able to initialize when starting a new step. This could also help to keep track !
It would be nice too to be able to change the continue/cancel/finish labels.

Thank you again.

from steppers.

drozdzynski avatar drozdzynski commented on August 24, 2024

Currently, I'm working on 2 projects, that's why I don't have much time, but I will try to do it in first days of February.

from steppers.

olganazo avatar olganazo commented on August 24, 2024

from steppers.

olganazo avatar olganazo commented on August 24, 2024

Hi

I've done it.
I have created a OnContinueAction class identical to the OnCancel / OnFinishAction.

In stepperView, in the config class I have added


private OnContinueAction onContinueAction;
 public Config setOnContinueAction(OnContinueAction onContinueAction) {
            this.onContinueAction = onContinueAction;
            return this;
 }

public OnContinueAction getOnContinueAction() {
            return onContinueAction;
}

I have modified the SteppersAdapter to add a call to onContinue in the ButtonContunue Listener

  holder.buttonContinue.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(position == getItemCount() - 1) config.getOnFinishAction().onFinish();
                else {
                    config.getOnContinueAction().onContinue();
                    nextStep();
                }
            }
        });

And now I just have to declare the onContinue in my activity, this is where I can keep track of user progression and do inits

 steppersViewConfig.setOnContinueAction(new OnContinueAction() {
            @Override
            public void onContinue() {
                mCurrentStep++;
                initStep();
            }
        });

from steppers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.