Runtimeexception When Input Exceeds Countermaxlength Of Textinputlayout
I have a form with a TextInputLayout and TextInputEditText. This is the relevant XML:
Solution 1:
I suggest adding additional two attributes and giving it a style. one is app:counterTextAppearance and another is app:counterOverflowTextAppearance like here,
<android.support.design.widget.TextInputLayout....app:counterTextAppearance="@style/counterText"app:counterOverflowTextAppearance="@style/counterOverride"></android.support.design.widget.TextInputLayout>Those two styles are nothing but simply an item with android:textColor name like for example,
<stylename="counterText"><itemname="android:textColor">#aa5353cc</item></style><stylename="counterOverride"><itemname="android:textColor">#ff0000</item></style>See the full explanation here.
If that didn't work then I suggest extending the Theme from Theme.Design.* as suggested in this answer.
Post a Comment for "Runtimeexception When Input Exceeds Countermaxlength Of Textinputlayout"