Skip to content Skip to sidebar Skip to footer

Set Error Textinputlayout In Fragment

I have an issue with TextInputLayout when I set the error message. I'm using the following package 'com.android.support:design:23.1.1' in a Fragment. This is the code if (tvName.ge

Solution 1:

Since you are theming a layout you should not derived from TextAppearance. Instead, derive it from ThemeOverlay. For example:

<style name="TextLabel" parent="ThemeOverlay.AppCompat.Light">
    <item name="android:textColorHint">@android:color/darker_gray</item>
    <item name="android:textSize">20sp</item>
    <item name="colorAccent">@color/colorPrimary</item>
    <item name="colorControlNormal">#2E7D32</item>
    <item name="colorControlActivated">#1B5E20</item>
</style>

Post a Comment for "Set Error Textinputlayout In Fragment"