Duplicate error icon on TextView/TextInputEditText
<p><strong>Details at the end on how the duplicate question doesn't solve this question</strong></p>

<p>Whenever I set an eror for a TextInputEditText, the error icon and error message are shown correctly.</p>

<p><a href="https://i.stack.imgur.com/U6TPa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U6TPa.png" alt="Error shown after hitting the button with an incorrect password"></a></p>

<p>However, whenever that field loses focus (by closing the keyboard or selecting the other field, a second error icon appears in the middle of the field, and it doesn't go away until I edit that field</p>

<p><a href="https://i.stack.imgur.com/Kx1aB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kx1aB.png" alt="Second error icon"></a></p>

<p>Here are the fields layout files:</p>

<pre><code>        &lt;android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/TextLabel"&gt;

        &lt;android.support.design.widget.TextInputEditText
            android:id="@+id/username"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="@string/prompt_username"
            android:inputType="text"
            android:maxLines="1"
            android:singleLine="true" /&gt;

    &lt;/android.support.design.widget.TextInputLayout&gt;

    &lt;android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:theme="@style/TextLabel"&gt;

        &lt;android.support.design.widget.TextInputEditText
            android:id="@+id/password"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="@string/prompt_password"
            android:imeActionId="@+id/login"
            android:imeActionLabel="@string/action_sign_in_short"
            android:imeOptions="actionUnspecified"
            android:inputType="textPassword"
            android:maxLines="1"
            android:singleLine="true" /&gt;

    &lt;/android.support.design.widget.TextInputLayout&gt;
</code></pre>

<p>And this is what I'm using to set the error:</p>

<pre><code>private TextInputEditText mRegisterPasswordView;
//[...]
mPasswordView = (TextInputEditText) findViewById(R.id.password);
//[...]
mPasswordView.setError(getString(R.string.error_invalid_password));
mPasswordView.requestFocus();
</code></pre>

<p>I've looked at examples of the use of setError, and it doesn't seem like I'm doing anything different, I haven't found any results of people having the same error.</p>

<p>I'm using build tools 24.0.2.</p>

<p>The question may be a duplicate of <a href="https://stackoverflow.com/questions/39313026/edittext-error-icon-and-show-password-missplaced">this one</a>, but the expected result is different. If I set the error to TextInputLayout, I get this:</p>

<p><a href="https://i.stack.imgur.com/Tsasm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tsasm.png" alt="Error shown under field"></a></p>

<p>(Also, where does that pink color come from?)</p>