TextInputLayout 中的 endIconMode
endIconMode in TextInputLayout
我正在使用 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>
这是因为,我使用了这个项目material库,然后出现这个错误,当我删除导入这个库时,一切正常
我正在使用 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>
这是因为,我使用了这个项目material库,然后出现这个错误,当我删除导入这个库时,一切正常