自定义TextInputLayout android

前端之家收集整理的这篇文章主要介绍了自定义TextInputLayout android前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
参见英文答案 > Outlined Edit Text from Material Design3个
我正在尝试创建自定义TextInputLayout.如何创建以下自定义TextInputLayout?

解决方法

您应该为Outline Box使用Material Design样式.只需简单使用:
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"

在TextInputLayout中.请参阅Material Design Guide中的Android文本字段

原文链接:https://www.f2er.com/android/316826.html

猜你在找的Android相关文章