I am using TextInputLayout around edittext. I want to change the border color of the edit text which is present inside the TextInputLayout.
xml
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.TextInputEditText
android:id="@+id/Test1"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</android.support.design.widget.TextInputLayout>
Csharp
private TextInputEditText editor;
editor = FindViewById<TextInputEditText>(Resource.Id.Test6);
editor.Background.SetColorFilter(Android.Graphics.Color.Red, Android.Graphics.PorterDuff.Mode.SrcAtop);
This above code works correctly, if the edit text is not present inside the TextInputLayout. Only gets problem while using the edittext inside the TextInputLayout. How can I fix this?