gpt4 book ai didi

android - 如何设置TextInputLayout大纲框 float 提示背景色

转载 作者:行者123 更新时间:2023-12-03 14:47:52 24 4
gpt4 key购买 nike

如何将文本输入布局大纲框样式中 float 提示的背景颜色更改为透明。我认为附图清楚地说明了问题它应该在笔划上方为红色,下方为白色)。我所做的改变背景本身是:

<style name="App.TextInputLayout" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense">
<item name="boxBackgroundColor">@color/white</item>
</style>

Outlined box with corrupted background

任何帮助是极大的赞赏

最佳答案

如果您查看 https://material.io/develop/android/components/text-fields/ 中的样式文档你可以看到“填充 TextView ”支持 boxBackgroundColor属性,而“概述的文本字段”没有。

所以我认为除非你找到内在提示TextView,否则这个问题没有合适的解决方案。在布局内并手动更改背景。但这会很麻烦,因为它取决于 TextInputLayout 的实现。保持不变。

关于android - 如何设置TextInputLayout大纲框 float 提示背景色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60803526/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com