I have a EditText
in TextInputLayout
.
<android.support.design.widget.TextInputLayout
android:id="@+id/inputTextUser"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hintTextAppearance="@style/TextAppearence.App.TextInputLayout" >
<EditText
android:id="@+id/userName"
android:layout_width="match_parent"
android:layout_height="40dp"
android:ems="10"
android:hint="@string/user_hint"
android:singleLine="true"
android:textColor="@color/white"
android:textSize="16sp" >
<requestFocus />
</EditText>
</android.support.design.widget.TextInputLayout>
I want change bottom line color to white, I tried this solution, but It's not work with me:
<style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:textColorHint">@color/white</item>
<item name="colorControlNormal">@color/white</item>
<item name="colorControlActivated">@color/white</item>
<item name="colorControlHighlight">@color/white</item>
</style>
<style name="TextAppearence.App.TextInputLayout" parent="@android:style/TextAppearance">
<item name="android:textColor">@color/light_blue_A400</item>
<item name="android:textSize">12sp</item>
</style>
Here is image after style theme:
Is there any suggestion to change color bottom line when un-focus and focus?