您好,我正在使用androidx库创建一个应用程序,但当我尝试使用app:endIconMode属性在TextInputEditText中添加显示或隐藏密码的切换时,我收到错误消息: attributeendIconMode not found。这是我的TextInputLayout和TextInputEditText另外,这些是我在gradle
在此之后,EditText中的“EditText”功能就不能工作了。编辑01.11:我了解到,如果您使用android:drawableStart而不是android:drawableLeft,那么xml中的可绘图设置是有效的。但是,以编程方式设置绘图不起作用。我以前工作过的可清除编辑文本的代码现在没有了:
public class ClearableErrorTextInputEditText extends ErrorTextInputEditText implem