В моем макете у меня есть классические поля формы имени пользователя / пароля с переключателем показа пароля:
<EditText
style="@style/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Email"
android:imeOptions="actionNext"
android:inputType="textEmailAddress"
android:maxLines="1" />
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:passwordToggleEnabled="true">
<EditText
style="@style/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"
android:imeOptions="actionDone"
android:inputType="textPassword"
android:maxLines="1" />
</com.google.android.material.textfield.TextInputLayout>
и style / editText
<style name="editText" parent="Widget.AppCompat.EditText">
<item name="android:paddingLeft">@dimen/dp10</item>
<item name="android:background">@color/white</item>
<item name="android:textSize">@dimen/sp16</item>
<item name="android:fontFamily">@font/rbt_bold</item>
<item name="android:textStyle">bold</item>
</style>
, а font / rbt_bold
<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
<font
android:font="@font/roboto_bold"
android:fontStyle="normal" />
</font-family>
Теперь кажется, что текст редактирования пароля не получил правильный стиль:
https://i.stack.imgur.com/LCKOB.png
что не так?