package br.com.bloder.blorm;

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

import br.com.bloder.blormlib.Blorm;
import br.com.bloder.blormlib.validation.Action;

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

    editTextFilled.setText("Hello");

      new Blorm.Builder()
              .field(editTextFilled).is(filled)
              .onSuccess(new Action() {
          @Override
          public void call() { onSuccess();
          }})
              .onError(new Action() {
                @Override
                public void call() {
                  onError();
                }
              })
              .submitOn(submit);
  }

  private void onSuccess() {
    editTextFilled.setError(null);
    Toast.makeText(this, "Success", Toast.LENGTH_SHORT).show();
  }

  private void onError() {
    Toast.makeText(this, "Error", Toast.LENGTH_SHORT).show();
  }
}

@@ -128,16 +128,48 @@
 Button;%0A
+import android.widget.CheckBox;%0A
 import a
@@ -487,16 +487,45 @@
  submit;
+%0A  private CheckBox checkBox;
 %0A%0A  @Ove
@@ -787,16 +787,72 @@
 submit);
+%0A    checkBox = (CheckBox) findViewById(R.id.check_box);
 %0A%0A    ed
@@ -957,16 +957,59 @@
 filled)%0A
+              .field(checkBox).is(checked)%0A
         
@@ -1042,32 +1042,40 @@
 n() %7B%0A          
+        
 @Override%0A      
@@ -1070,32 +1070,40 @@
 rride%0A          
+ 
+       
 public void call
@@ -1106,16 +1106,38 @@
 call() %7B
+%0A                     
  onSucce
@@ -1152,17 +1152,40 @@
         
-%7D
+        %7D%0A              
 %7D)%0A     
@@ -1446,16 +1446,45 @@
 (null);%0A
+    checkBox.setError(null);%0A
     Toas

Add checkbox validation in main activity