title: How to remove the Error message box from setError in android?
body: <p>By default, the <code>setError</code> makes an <code>EditText</code> look like the following:</p>
  
  <p><a href="https://i.stack.imgur.com/msncQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/msncQ.jpg" alt="setError view"></a></p>
  
  <p>There's a red exclamation. The error message pops-up when that particular <code>EditText</code> gains focus.</p>
  
  <p>I'm creating a custom <code>setError</code> method:</p>
  
  <pre><code>validatedIcon = ContextCompat.getDrawable(getApplicationContext(), R.drawable.validated);
  validatedIcon.setBounds(0, 0, validatedIcon.getIntrinsicWidth(), validatedIcon.getIntrinsicHeight());
  firstName.setError("Please check your first name",validatedIcon);
  </code></pre>
  
  <p>My new error icon is a custom icon. But I don't want the error message to be displayed with it. I tried passing null as the message, but that removed the whole icon. I tried passing the empty string, but that simply made an empty box.</p>
  
  <p><strong>Alternative tried</strong>: I tried setting the icon using <code>setCompoundDrawablesWithIntrinsicBounds</code>, but even after much hair-pulling, it didn't work properly.</p>
  
  <p>So, is there a way to get rid of the message-box in <code>setError</code>?</p>