title: Android : Saripaar Validation Library. Need to set error message from strings.xml
body: <p>I am using the the Saripaar validation library <a href="https://github.com/ragunathjawahar/android-saripaar" rel="noreferrer">https://github.com/ragunathjawahar/android-saripaar</a> to validate one of the forms.
  The library is pretty useful as it avoids a lot of boilerplate code for validating a form.
  However, the library uses annontations on widgets.
  Below is an example:</p>
  
  <pre><code>@Password(order = 1)
  @TextRule(order = 2, minLength = 6, message = "Enter at least 6 characters.")
  private EditText passwordEditText;
  </code></pre>
  
  <p>The order attribute is the one that specifies the order in which the validations are going 
  to take place. Here is my problem: the message attribute takes a constant expression.
  I need to set this from string Resource file. So that error messages can be internationalized later. I have already tried below:</p>
  
  <pre><code>message = getResources().getString(R.string.err_msg)
  </code></pre>
  
  <p>But it doesnt seem to work as it needs compile time constants.</p>
  
  <p>Can anyone help me with the same or guide me through a workaround?</p>