【发布时间】:2020-08-25 08:08:04
【问题描述】:
【问题讨论】:
-
我认为只有两种“官方”样式:Widget.MaterialComponents.TextInputLayout.OutlinedBox 和 Widget.MaterialComponents.TextInputLayout.FilledBox。你可能想看看第二个,它没有大纲。 material.io/components/text-fields
-
您说得对,官方样式只有两种,但也许可以创建一些自定义样式。例如带有白色背景的 Widget.MaterialComponents.TextInputLayout.FilledBox 会很接近,只是缺少边框。也许有人知道是否/如何添加。
-
@stefan.at.wpf 您是否尝试过创建一个看起来像所需矩形的可绘制背景并将其简单地应用到 xml 中的 Widget.MaterialComponents.TextInputLayout.FilledBox 元素。
标签: android material-components-android