use of br.com.ilhasoft.support.validation.Validator in project open-event-orga-app by fossasia.
the class ForgotPasswordFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
binding = DataBindingUtil.inflate(inflater, R.layout.forgot_password_fragment, container, false);
validator = new Validator(binding);
return binding.getRoot();
}
use of br.com.ilhasoft.support.validation.Validator in project open-event-orga-app by fossasia.
the class LoginFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
binding = DataBindingUtil.inflate(inflater, R.layout.login_fragment, container, false);
validator = new Validator(binding);
return binding.getRoot();
}
use of br.com.ilhasoft.support.validation.Validator in project open-event-orga-app by fossasia.
the class SignUpFragment method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
binding = DataBindingUtil.inflate(inflater, R.layout.sign_up_fragment, container, false);
validator = new Validator(binding);
return binding.getRoot();
}
use of br.com.ilhasoft.support.validation.Validator in project open-event-orga-app by fossasia.
the class CreateFaqFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
final Context contextThemeWrapper = new ContextThemeWrapper(getActivity(), R.style.AppTheme);
LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper);
binding = DataBindingUtil.inflate(localInflater, R.layout.faq_create_layout, container, false);
validator = new Validator(binding.form);
binding.submit.setOnClickListener(view -> {
if (validator.validate())
getPresenter().createFaq();
});
return binding.getRoot();
}
use of br.com.ilhasoft.support.validation.Validator in project open-event-orga-app by fossasia.
the class UpdateCopyrightFragment method onCreateView.
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
binding = DataBindingUtil.inflate(inflater, R.layout.copyright_create_layout, container, false);
validator = new Validator(binding.form);
AppCompatActivity activity = ((AppCompatActivity) getActivity());
activity.setSupportActionBar(binding.toolbar);
ActionBar actionBar = activity.getSupportActionBar();
if (actionBar != null) {
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayHomeAsUpEnabled(true);
}
setHasOptionsMenu(true);
Bundle bundle = getArguments();
copyrightId = bundle.getLong(EVENT_ID);
binding.submit.setOnClickListener(view -> {
if (validator.validate())
getPresenter().updateCopyright();
});
return binding.getRoot();
}
Aggregations