TextInput layout turns editext into red on setting error
<p>I have a layout, whenever i press submit button and set error on text input layout it turns the editText into red but i hadn't set any color on editText on set error.
   Basically i just wanted to give the error string below the editText and not to turn editText into red on setting the error.
My Fragment code is as follows,</p>

<pre><code>public class SignIn extends Fragment implements View.OnClickListener
{
TextInputLayout edEamil,edPassword;

@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    // LogUtil.e(TAG,"onCreateView");
    return inflater.inflate(R.layout.fragment_signin,container,false);
}

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    // LogUtil.e(TAG,"onViewCreated");
    Button btSignin= GeneralFunction.findViewByIdAndCast(view, R.id.fs_bt_submit);
    btSignin.setOnClickListener(this);
    btSignin.setText(GeneralFunction.covertFistChat_everyWordUpper(getString(R.string.first_signin)));

    TextView tvForgetPassword= GeneralFunction.findViewByIdAndCast(view, R.id.fs_tv_fPassword);
    tvForgetPassword.setOnClickListener(this);

    TextView tvSignUP= GeneralFunction.findViewByIdAndCast(view, R.id.fs_tv_fSignup);
    tvSignUP.setOnClickListener(this);
    tvSignUP.setText(GeneralFunction.covertFistChat_everyWordUpper(getString(R.string.first_signUP)));

    edEamil=GeneralFunction.findViewByIdAndCast(view,R.id.fs_ti_email);
    DrawableState.editextSelector(edEamil);

    edPassword=GeneralFunction.findViewByIdAndCast(view,R.id.fs_ti_password);
    DrawableState.editextSelector(edPassword);
}

@Override
public void onClick(View v) {
    switch (v.getId())
    {
        case R.id.fs_bt_submit:
        {
            edEamil.setError("Not a valid email address!");
            edPassword.setError("Not a valid password!");
        }break;
    }
 }
}
</code></pre>

<p>My xml code for fragment is as follows with linear layout as parent,</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"&gt;

&lt;android.support.design.widget.TextInputLayout
    android:id="@+id/fs_ti_email"
    style="@style/textInputLayout"&gt;

    &lt;EditText
        style="@style/edittext"
        android:tag="@string/str_email"
        android:hint="@string/str_email"/&gt;
&lt;/android.support.design.widget.TextInputLayout&gt;

&lt;android.support.v4.widget.Space
    android:layout_width="match_parent"
    android:layout_height="@dimen/dim_edMarginTop"/&gt;

&lt;android.support.design.widget.TextInputLayout
    android:id="@+id/fs_ti_password"
    style="@style/textInputLayout"&gt;

    &lt;EditText
        style="@style/edittext"
        android:imeOptions="actionDone"
        android:inputType="textPassword"
        android:tag="@string/str_password"
        android:hint="@string/str_password"/&gt;
&lt;/android.support.design.widget.TextInputLayout&gt;

&lt;android.support.v4.widget.Space
    android:layout_width="match_parent"
    android:layout_height="@dimen/dim_edMarginButtonView"/&gt;

&lt;android.support.v7.widget.AppCompatButton style="@style/button"
    android:id="@+id/fs_bt_submit"
    android:text="@string/first_signin"/&gt;

&lt;android.support.v4.widget.Space
    android:layout_width="match_parent"
    android:layout_height="@dimen/dim_edPaddingLeftRigh"/&gt;

&lt;RelativeLayout android:layout_width="match_parent"
    android:layout_height="wrap_content"&gt;
    &lt;TextView style="@style/textView"
        android:id="@+id/fs_tv_fPassword"
        android:text="@string/str_forgetPassword"
        android:layout_alignParentStart="true"
        android:layout_alignParentLeft="true"/&gt;
    &lt;TextView style="@style/textView"
        android:id="@+id/fs_tv_fSignup"
        android:text="@string/first_signUP"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"/&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p></p>

<p>and the style for editext and input layout is as follows,</p>

<pre><code> &lt;style name="textInputLayout"&gt;
    &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
    &lt;item name="android:paddingBottom"&gt;@dimen/dim_textLaoutMargin&lt;/item&gt;
    &lt;item name="android:layout_marginBottom"&gt;@dimen/dim_textLaoutMargin&lt;/item&gt;
&lt;/style&gt;

&lt;style name="edittext" parent="android:Widget.EditText"&gt;
    &lt;item name="android:singleLine"&gt;true&lt;/item&gt;
    &lt;item name="android:textSize"&gt;@dimen/dim_widgetMarginLeft&lt;/item&gt;
    &lt;item name="android:textColor"&gt;@color/colorWhite&lt;/item&gt;
    &lt;item name="android:paddingLeft"&gt;@dimen/dim_edPaddingLeftRigh&lt;/item&gt;
    &lt;item name="android:paddingRight"&gt;@dimen/dim_edPaddingLeftRigh&lt;/item&gt;
    &lt;item name="android:paddingTop"&gt;@dimen/dim_edPaddingTop&lt;/item&gt;
    &lt;item name="android:paddingBottom"&gt;@dimen/dim_edPaddingBottom&lt;/item&gt;
    &lt;item name="android:gravity"&gt;start&lt;/item&gt;
    &lt;item name="android:background"&gt;@android:color/transparent&lt;/item&gt;
    &lt;item name="android:textColorHint"&gt;@color/colorWhite&lt;/item&gt;
    &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
    &lt;item name="android:layout_height"&gt;@dimen/dim_buttonHeight&lt;/item&gt;
    &lt;item name="android:inputType"&gt;text|textCapSentences|textNoSuggestions&lt;/item&gt;
    &lt;item name="android:privateImeOptions"&gt;nm&lt;/item&gt;
    &lt;item name="android:imeOptions"&gt;actionNext&lt;/item&gt;

    &lt;item name="colorControlNormal"&gt;@color/colorWhite&lt;/item&gt;
    &lt;item name="colorControlActivated"&gt;@color/colorPrimary&lt;/item&gt;
    &lt;item name="android:textColorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>basically i just wanted to give the error string below the editext and not to turn editext into red on setting the error.</p>

<p>My ui after setting the error is,
<a href="https://i.stack.imgur.com/IZFfz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IZFfz.png" alt="enter image description here"></a></p>

<p>My normal ui ,
<a href="https://i.stack.imgur.com/0Gyru.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0Gyru.png" alt="enter image description here"></a></p>