Git Product home page Git Product logo

steppers's People

Contributors

drozdzynski avatar fennifith avatar honest-objections avatar ravidsrk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

steppers's Issues

Change Button Label

Hi, whats up ?

How I Change the buttons text ? The default text to PositiveButtons is CONTINUE, i need to change to my country language. How do i do this ?

Reset the view again

Hi,
Thanks for such a great library. I am using fragments along with tabs and placing this stepperview in one of the fragments. I would like to know how to reset the entire stepperview once the job is done and the user clicks finish button.

Android Studio can't resolve the library.

For some reason, Android Studio can't resolve the library when I add it to my project. I thought it's an issue with my machine so I tried it here and the website can't resolve it either. This implies that the library is not available on jCenter or Maven Central or JitPack.

The README suggests compile 'me.drozdzynski.library.steppers:steppers:1.0.0' but this does not work, at least not on my end.

Am I missing something? Is it hosted somewhere else?

Adding third fragment to the list returns null pointer exception.

It shows error in SteppersAdapter.java

    if(fragmentManager.getFragments() != null) {
        List<Fragment> fragments = fragmentManager.getFragments();
        for(Fragment fragment : fragments) {
            Log.d("Fragments", fragment.toString());
        }
    }

my implementation of adding fragments to Arraylist of SteppersItem as follows.

`SteppersView steppersView = (SteppersView) findViewById(R.id.steppersView);

    SteppersView.Config steppersViewConfig = new SteppersView.Config();
    steppersViewConfig.setOnFinishAction(new OnFinishAction() {
        @Override
        public void onFinish() {
            Toast.makeText(AddAppointmentActivity.this, "Appointment Created!", Toast.LENGTH_SHORT).show();

        }
    });

    steppersViewConfig.setOnCancelAction(new OnCancelAction() {
        @Override
        public void onCancel() {
            Toast.makeText(AddAppointmentActivity.this, "Appointment Discarded!", Toast.LENGTH_SHORT).show();
        }
    });

    steppersViewConfig.setFragmentManager(getSupportFragmentManager());
    ArrayList<SteppersItem> steps = new ArrayList<>();

    stepFirst = new SteppersItem();
    stepFirst.setLabel("Choose Patient to get Appointment");
    stepFirst.setSubLabel("Specify the time of Appointment");
    chooseDateFragment = new ChooseDateFragment();
    chooseDateFragment.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            switch(v.getId()){
                case R.id.btnChangeDate: /** Start a new Activity MyCards.java */
                    showDatePicker();
                    break;
            }
        }
    });

    stepFirst.setFragment(chooseDateFragment);
    stepFirst.setPositiveButtonEnable(false); //Todo: change to true after completing


    stepSecond = new SteppersItem();
    stepSecond.setLabel("Choose your Symptoms");
    stepSecond.setSubLabel("Select from the below list");
    ChooseSymptomListFragment p1=new ChooseSymptomListFragment();
    stepSecond.setFragment(p1);
    stepSecond.setPositiveButtonEnable(false);

    stepThird=new SteppersItem();
    stepThird.setLabel("Choose Payment Option");
    stepThird.setSubLabel("");
    ChoosePaymentFragment p2=new ChoosePaymentFragment();

    stepThird.setFragment(p2);
    stepThird.setPositiveButtonEnable(false);
    steps.add(stepFirst);
    steps.add(stepSecond);
    steps.add(stepThird);





    steppersView.setConfig(steppersViewConfig);
    steppersView.setItems(steps);
    steppersView.build();

`
I don't understand what is the problem in the code.
First both fragments loads perfectly, on clicking continue on the secondStep application throws NullPointerException. I exchanged the fragments order of loading. Nothing helps.

Help me Out. Thanks !

get edittext value

hello. thank you for your effort for making this stepper. i would like to ask how to retrieve edit text value if i put edittext inside fragment 1?

Color options

Is there a way to change the color of the buttons. It shows up as neon green for me, I would like it to be the accent color of the app.

Thanks

Overlapping Fragments

Hello!
Awesome Implementation!
I was facing a weird overlapping issue, I solve by removing the last fragment added.

SteppersAdapter.java:174
if (lastFragment != null) { fragmentTransaction.remove(lastFragment ); } fragment = steppersItem.getFragment(); lastFragment = fragment;

I'm not sure if is the best approach but works like a charm in my case here.

Modify text size of the Label and Sublabel

Edit: Found the way! See below

Hello, I believe this must be rather simple but I do not find a way to modify the textSize of the Label and Sublabel: https://github.com/drozdzynski/Steppers/blob/5a7b08a7fc0f4329ccd68a884aca1ac734d48cbc/steppers/src/main/res/values/styles.xml

How can I set the text size for the Label and Sublabel?
Thank you!

Edit with solution:
For the SubLabelActive, a friend realized it was just needed to duplicate the SubLabelActive style with our own textSize value in the styles.xml.
I thought this was not allowed/working because I was actually only trying with the LabelActive where I did the same and it did not increase the size... but this style was a bit tricky, see below.

The same did not work with the LabelActive style, and the reason is that it appears in both values folders:
- /res/values/styles.xml
- /res/values-16/styles.xml
So it was enough to create a new res/values-16/ folder for API 16 support containing the styles.xml file with the LabelActive style and the desired textSize.

Maybe it was very evident but I hope it helps other Android beginners like me :)

Thanks once again for this awesome lib!

Is there a way to keep track of user´s progress ?

I was trying to find a way to keep track of the users progress in the steps, for example, If my steps are too log, I want to let users to close, save his progress and next time they open, open it in the position they were las time. For that I need to be able to focus any step and not necesarily the fisrt one. How can I do that?

Bu the way, VERY NICE LIBRARY....

issues while double clicking on button

I found an issue in the library that on double clicking the buttons it skips one step.
Let's suppose i click on the "new button" Button in the first step twice
then it skips the second button and goes on to the third button

allow jump to random step

Hi,I am using this library in a project. Is there any way to allow users to jump to random steps. I am trying to use onClickListner on item view. But the problem is it messes up the order of fragments. My code look like follow:

 holder.itemView.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            switch (position){
                case 0:
                    if (currentStep!=0) {

                        removeStep = currentStep;
                        beforeStep = -1;
                        currentStep = 0;
                        notifyItemRangeChanged(removeStep, currentStep);

                    }

                    break;
                case 1:
                    if (currentStep!=1) {

                        removeStep = currentStep;
                        beforeStep = 0;
                        currentStep = 1;
                        notifyItemRangeChanged(removeStep, currentStep);
                    }
                    break;
                case 2:
                    if (currentStep !=2) {

                        removeStep = currentStep;
                        beforeStep = 1;
                        currentStep = 2;
                        notifyItemRangeChanged(removeStep, currentStep);
                    }
                    break;
            }
        }
    });`

Vertical Recycler does not get scrolled inside the layout

I passed a custom fragment as one of StepperItem, the fragment contains vertical Recyclerview and horizontal Recyclerview inside it. The horizontal Recyclerview is getting scrolled perfectly. But the Vertical Recyclerview does not gets scrolled. Though when i used Mouse in as input(for emulator as Genymotion) it gets scrolled but the whole view is getting Scrolled at the same time the Vertical Recyclerview inside the fragment gets scrolled. How do i properly handle this situation?

My stepper app has crashed

When run my apk it has crashed. please create a new release so that we implement stepper without any error.So I have will understand my concern.And I hope your team early create a new release for Android developer.Thank you very much.

NullPointerException in drawChecked

I've gotten about 10 reports of a NullPointerException on this line, but they're all from the same phone (Samsung Galaxy Pocket2) running 4.4 so it's probably just an issue with the device.

Still might want to check it out though ;)

Step Fragment doesn't show in Release

Hi boys,
i've a great problem.
When i compile my app with Stepper in Release mode i'm not able to show Frgments Steps. In Debug mode all work fine!!

Why?

Thanks a lot and Regards

Load custom current position in the stepper?

Can I set a custom current position when build the stepper?.
ie. If load one started process that they are in the third step and I need set the first and second step as checked.

Thanks.

Questions duplicate

Hi, i have a problem with different fragmen, every 2 questions duplicate item instead show the fragment declared, this happends when i return to fragment, any idea, thanks.

Add data dynamically to Next Step

Hi,
my question is...is possible to add data dynamically to an Next Step?
That is i've first step with two buttons. When i click first button i want load some data into next step, if i click second button i want see others data.
I tried, but when it load steps give an NullPoiterException (in second step) because data are not available in first istance, but only when i click on buttons into first step.

Thanls a lot

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.