stepstone-tech / android-material-stepper

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

Using stepper with Conductor Lib #260

Open douglasalipio opened 6 years ago

douglasalipio commented 6 years ago

Hey guys,

I want to know if is it possible to use Stepper without Fragment because I'm using Conductor for developing my views so I don't have Fragment only "Controller" and one activity as well.

Thanks.

zawadz88 commented 6 years ago

Hi @douglasalipio, It should be possible. StepperLayout works with Views as well. Please see https://github.com/stepstone-tech/android-material-stepper/blob/master/sample/src/main/java/com/stepstone/stepper/sample/NoFragmentsActivity.kt

douglasalipio commented 6 years ago

@zawadz88 thank you. I'll take a look at the sample.

WhySoMadBruh commented 6 years ago

Can you please upload a simple sample covering all its features in java

WhySoMadBruh commented 6 years ago

@Nullable @Override public VerificationError verifyStep() { String fnamee; fnamee=fname.getText().toString().trim(); if(fnamee.isEmpty()){ onError(new VerificationError("cdscsdcsdcs")); }else{ return null; } } how do I check handle errors in this case?

douglasalipio commented 6 years ago

@parkouronit I didn't understand your question but you can check out the sample project how to handler error. Also, there are many sample show how stepper works. https://github.com/stepstone-tech/android-material-stepper/tree/master/sample/src/main/java/com/stepstone/stepper/sample In a few days, I can create a sample Stepper/Conductor. @zawadz88 What do you think about creating this sample? I can make a PR.

zawadz88 commented 6 years ago

@douglasalipio, A sample would be great, I'll gladly review it.

@parkouronit please create a separate issue on GitHub and describe the problem you're facing there. This is so that it doesn't clutter existing issues and so that people with similar problems will it easier to find.