Skip to content

Instantly share code, notes, and snippets.

@flipper83
Created June 24, 2014 10:10
Show Gist options
  • Save flipper83/8ef467343508479c6705 to your computer and use it in GitHub Desktop.
Save flipper83/8ef467343508479c6705 to your computer and use it in GitHub Desktop.
public class ActivityTest extends Frament implements Wizzard {
@Override
public Validate getValidate() {
UserPasswordValidator userPasswordValidator = new UserPasswordValidator(user,password);
return userPasswordValidator();
}
}
public class TestActivity extends Activity {
/** next step on wizzard */
private void next(){
if(currentStep >= pageAdapter.size()){
//validate all
for(Validate validate allValidates){
boolean isValid = validate.isValid();
...
}
...
}else{
...
Validate validate = pageAdapter.get(currentStep).getValidate();
allValidates.add(validate);
...
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment