gpt4 book ai didi

android - 如何更改 android TextInputLayout material.textfield 上的左边距/填充文本错误

转载 作者:行者123 更新时间:2023-11-30 05:03:05 25 4
gpt4 key购买 nike

我需要删除 TextInputLayout material.textfield 上的错误文本左填充/边距。

知道怎么做吗?

需要像这样没有填充的错误文本 enter image description here默认填充与 TextInputEditText 填充相同(有左填充):

enter image description here

我尝试扩展 IndicatorViewController 但它是最终类

最佳答案

好吧,我确实说过我对此比较陌生,我假设您能够修改主题中的填充属性。我确实可能找到了另一个解决方案,但它同时带来了 float 标签和错误文本。它需要动态设置但搞乱了

textInputLayout.setPadding(-40,0,0,0);

对其进行了更改,使其更靠近左边距。

关于android - 如何更改 android TextInputLayout material.textfield 上的左边距/填充文本错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57871805/

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