package br.com.bloder.blorm;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;

import br.com.bloder.blormlib.Blorm;

import static br.com.bloder.blormlib.validation.Validations.*;

public class MainActivity extends AppCompatActivity {

  private EditText editTextFilled;
  private Button submit;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    editTextFilled = (EditText) findViewById(R.id.edit_text_filled);
    submit = (Button) findViewById(R.id.submit);

    new Blorm.Builder().field(editTextFilled).is(filled).onSubmit(submit);
  }
}

@@ -193,24 +193,75 @@
 rmlib.Blorm;
+%0Aimport br.com.bloder.blormlib.validation.Validate;
 %0A%0Aimport sta
@@ -775,15 +775,243 @@
 submit);
+%0A%0A    new Blorm.Builder().field(editTextFilled).is(new Validate() %7B%0A      @Override%0A      public boolean validate() %7B%0A        return false;%0A      %7D%0A%0A      @Override%0A      public void onError() %7B%0A%0A      %7D%0A    %7D).onSubmit(submit);
 %0A  %7D%0A%7D%0A

Add custom on error example in main activity