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 br.com.bloder.blormlib.validation.Validate;

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);

    new Blorm.Builder().field(editTextFilled).is(new Validate() {
      @Override
      public boolean validate() {
        return false;
      }

      @Override
      public void onError() {

      }
    }).onSubmit(submit);
  }
}

@@ -159,16 +159,45 @@
 ditText;
+%0Aimport android.widget.Toast;
 %0A%0Aimport
@@ -227,16 +227,65 @@
 .Blorm;%0A
+import br.com.bloder.blormlib.validation.Action;%0A
 import b
@@ -787,80 +787,46 @@
     
-new Blorm.Builder().field(editTextFilled).is(filled).onSubmit(submit);%0A%0A
+editTextFilled.setText(%22Hello%22);%0A%0A    
     
@@ -874,20 +874,36 @@
 .is(
-new Validate
+filled).onSuccess(new Action
 () %7B
@@ -905,24 +905,28 @@
 n() %7B%0A      
+ 
+   
 @Override%0A  
@@ -933,31 +933,28 @@
     
+    
 public 
-boolean validate
+void call
 () %7B
@@ -966,67 +966,88 @@
     
+    
-return false;%0A
+onSuccess();%0A    
       %7D
-%0A%0A
+%7D%0A  
       
-@Override%0A      public
+).onSubmit(submit);%0A  %7D%0A%0A  private
  void on
 Erro
@@ -1046,49 +1046,116 @@
 d on
-Error
+Success
 () %7B%0A
-%0A
     
-  %7D%0A    %7D).onSubmit(submit
+editTextFilled.setError(null);%0A    Toast.makeText(this, %22Success%22, Toast.LENGTH_SHORT).show(
 );%0A 

Add validation success example in main activity