我在TextInputLayout和TextInputEditText内部工作。我在TextInputLayout中使用了app:endIconMode,然后到提示和基线的距离比以前更大了,如何检索这个距离?这是我的代码:
<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>发布于 2019-08-12 17:27:40
这是因为,我使用这个项目材料库,然后出现这个错误,当我删除导入这个库时,一切都很好
https://stackoverflow.com/questions/57000453
复制相似问题