首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TextInputLayout中的endIconMode

TextInputLayout中的endIconMode
EN

Stack Overflow用户
提问于 2019-07-12 13:03:02
回答 1查看 2K关注 0票数 1

我在TextInputLayout和TextInputEditText内部工作。我在TextInputLayout中使用了app:endIconMode,然后到提示和基线的距离比以前更大了,如何检索这个距离?这是我的代码:

代码语言:javascript
复制
  <com.google.android.material.textfield.TextInputLayout
                app:endIconMode="clear_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@color/white"
                android:hint="@string/hint_phon_number">

                <com.google.android.material.textfield.TextInputEditText
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:background="@color/white"
                    android:inputType="phone"
                    android:maxLength="17"
                    android:textColor="#FF192331" />

            </com.google.android.material.textfield.TextInputLayout>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-08-12 17:27:40

这是因为,我使用这个项目材料库,然后出现这个错误,当我删除导入这个库时,一切都很好

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57000453

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档