由于用户输入文本而隐藏提示时,包装EditText(或后代)以显示浮动标签的布局。
禁用TextInputEditText时,禁用密码切换ImageButton
当TextInputLayout的app:passwordToggleEnabled属性设置为true并且TextInputEditText的android:enabled属性设置为false时,如何阻止密码切换ImageButton ...
是否可以在TextInputLayout中为错误标签保留空间?
我的布局中有多个TextInputLayouts,我需要验证字段(如果它们无效,则显示错误文本)。但是包含错误的TextView是由TextInputLayout动态添加的,所以...
TextInputLayout - setError不会将浮动提示颜色更改为错误颜色
我遇到了TextInputLayout错误状态的问题。当我在TextInputLayout上设置错误时,错误消息是红色的,以及下划线,但提示没有(它保持默认...
Android无法解析Material Components
我收到此错误:无法解析符号'@ style / Widget.MaterialComponents.TextInputLayout.OutlineBox'我在XML中将此行添加到我的TextInputLayout后收到此错误:...
XML中的TextInputEditText requestFocus导致渲染问题
看起来我无法将requestFocus放在我的TextInputEditText中,因为它会在预览屏幕上使用此堆栈跟踪导致渲染问题:android.content.res.Resources $ NotFoundException:...
[Android]:java.lang.NoSuchFieldError:无字段error_color_material
尝试在UI的TextInputLayout上显示错误消息时出现以下错误:E / AndroidRuntime:FATAL EXCEPTION:main进程:com.blablabla.appname,PID:23691 java.lang ....
TextInputEditText中的OnClickListener包裹在TextInputLayout中
我有一个围绕TextInputLayout的TextInputEditText,正如Google建议的那样:https://developer.android.com/reference/android/support/design/widget/TextInputLayout.html但是,我...
为什么属性app:在TextInputLayout中找不到endIconMode?
您好我正在使用androidx库创建一个应用程序,但是当我尝试使用app:endIconMode属性添加切换以在TextInputEditText中显示或隐藏密码时,我得到...
有一种方法可以在TextInputLayout中更改“编辑文本”行的颜色: @白颜色 @红色
我有一个很长的文本,需要浮动编辑文本,如要求所示。我在这里经历了很多这样的问题,但找不到合适的答案。我们怎样才能做到这一点?我有 ...
保持TextInputLayout始终聚焦或保持标签始终扩展
我想知道是否可以始终保持标签扩展,无论EditText中是否有文本。我在源头环顾四周,这是一个使用ValueAnimator和...
如何更改材质TextInputLayout OutlinedBox未聚焦的颜色
我有一个OutlinedBox TextInputLayout,我想在editText的未聚焦模式下更改框颜色。我怎样才能做到这一点?
android TextInputLayout中的表单验证无法正常工作
我正在尝试验证表单,我正在使用TextInputLayout错误来显示错误,当我单击空表单中的提交按钮时,错误仅显示在名称字段中,并且错误未隐藏时...
如何使用TextInputEditText视图修复“TextInputLaout”我无法实现使用imeOption和nextFocustDown属性显示下一个焦点Edittext
我使用EditText imeOption运行良好。但是当我在TextInputEditText中使用TextInputLayout时,我看到很多资源并在我的代码中实现它但是我无法得到我想要的实际结果。 ...
在TextInputLayout中垂直居中提示和EditText
我正在使用TextInputLayout来显示提示,但我无法将其垂直居中。我总是得到这个:当EditText /中没有文本时,我想垂直提示中心...
更改浮动标签EditText和TextInputLayout的字体
有人试图改变浮标的字体吗?我更改了EditText的源代码但浮动标签的字体没有改变,我非常感谢那些帮助我的人代码:...
我在那里,我使用kotlin设置TextInputLayout的提示字体为:passwordTextLayout.typeface = Typeface.createFromAsset(context.assets,“fonts / af / myfont.ttf”)其中......
您好我想使用以下代码设置TextInputLayout字体:public class CustomFont {public static void setTypefaceToInputLayout(TextInputLayout inputLayout,String typeFace,...
使用TextInputLayout时出现InflateException
我正在尝试使用Material Design中的TextInputEditText(https://github.com/material-components/material-components-android/blob/master/docs/components/TextInputLayout.md),我正在运行时...