android – 如何在TextInputLayout上设置计数器的颜色?

android – 如何在TextInputLayout上设置计数器的颜色?,第1张

概述我正在使用围绕EditText的TextInputLayout.现在柜台是黑色的,我希望它是白色的.我不确定设置什么选项让它变成白色. <android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_conte 我正在使用围绕EditText的TextinputLayout.现在柜台是黑色的,我希望它是白色的.我不确定设置什么选项让它变成白色.
<androID.support.design.Widget.TextinputLayout        androID:layout_wIDth="match_parent"        androID:layout_height="wrap_content"        app:counterEnabled="true"        androID:textcolor="@color/white"        androID:textcolorHint="@color/white"        >        <EditText            androID:ID="@+ID/myfIEld"            androID:layout_wIDth="match_parent"            androID:layout_height="wrap_content"            androID:backgroundTint="@color/white"            androID:hint="@string/myfIEld_hint"            androID:inputType="text"            androID:maxLength="26"            androID:textcolor="@color/white"            androID:textcolorHint="@color/white"/>    </androID.support.design.Widget.TextinputLayout>
解决方法 请加:
app:counterTextAppearance="@androID:color/white"

到你的TextinputLayout.

希望这可以帮助!

总结

以上是内存溢出为你收集整理的android – 如何在TextInputLayout上设置计数器颜色?全部内容,希望文章能够帮你解决android – 如何在TextInputLayout上设置计数器的颜色?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1137283.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存