title: How to fix background red color TextInputLayout when isEmpty in Android
body: <p>I want <strong><code>setError</code></strong> when <code>TextInputLayout</code> <strong><code>isEmpty</code></strong>, I write this code but when show error message, set red background for <code>TextInputLayout</code>! <br></p>
  
  <p>I do <strong>not want</strong> set background! <strong>I want</strong> just show the error message.</p>
  
  <p><a href="https://i.stack.imgur.com/4FEoY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4FEoY.png" alt="enter image description here"></a></p>
  
  <p><strong>My code:</strong> </p>
  
  <pre><code>if (TextUtils.isEmpty(userName)) {
  register_UserName_layout.setError("Insert Username");
  }
  </code></pre>
  
  <p><strong>XML code :</strong> </p>
  
  <pre><code>&lt;android.support.design.widget.TextInputLayout
      android:id="@+id/register_userUsernameTextLayout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_below="@+id/register_headerLayout"
      android:layout_margin="10dp"
      android:textColorHint="#c5c5c5"&gt;
  
      &lt;EditText
          android:id="@+id/register_userUserNameText"
          android:layout_width="match_parent"
          android:layout_height="40dp"
          android:background="@drawable/selector_bg_edit"
          android:hint="نام کاربری"
          android:paddingBottom="2dp"
          android:textColor="@color/colorAccent"
          android:textCursorDrawable="@drawable/bg_input_cursor"
          android:textSize="16sp" /&gt;
  &lt;/android.support.design.widget.TextInputLayout&gt;
  </code></pre>
  
  <p>How can I fix this? Thanks all &lt;3</p>