code: private void initializeGenderSpinner() {
          genderSpinner = (Spinner) findViewById(R.id.gender_spinner);
          genderSpinner
                  .addValidator(Validators.notNull(this, R.string.not_null_validator_error_message));
      }
docs: Initializes the spinner, which allows to choose a gender.