I have implemented Custom edittext, with custom style :
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Username"
android:textColorHint="@color/white"
app:hintAnimationEnabled="true"
app:hintTextAppearance="@style/TExtAppearance"
>
<com.app.farmtrace.fieldagent.CustomView.EditText_SemiBold
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@color/colorAccent"
android:theme="@style/EditTextStyle"
android:id="@+id/username"
android:maxLines="1"
android:maxLength="50"
android:inputType="textEmailAddress|textNoSuggestions"
android:nextFocusDown="@+id/password"
/>
</android.support.design.widget.TextInputLayout>
And this is the screen :
there is just the cursor and now when i again select the cursor i get this :
I dont want the yellow underline below the cursor.
This is tested in Moto g4 with android 7.0.
<style name="TExtAppearance">
<item name="android:textColor">@color/white</item>
<item name="android:textColorHighlight">@color/white</item>
<item name="android:textColorHint">@color/white</item>
<item name="android:textColorLink">@color/white</item>
<item name="android:textSize">16sp</item>
</style>
<style name="EditTextStyle" parent="Widget.AppCompat.EditText">
<item name="colorControlNormal">@color/white</item>
<item name="colorControlActivated">@color/colorAccent</item>
<!--<item name="colorControlHighlight">@color/colorAccent</item>-->
</style>
Edit Also Getting underline on error if i seterror and text not visible of error :