Мне нужно использовать OutlinedBox TextInputLayout, но когда я пытаюсь сделать это в моем приложении, это не работает, потому что строка под текстом остается. Ожидаемый результат:
Результат:
![enter image description here](https://i.stack.imgur.com/2XWgM.png)
Это код:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/editTextEmail"
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="305dp"
android:layout_height="80dp"
android:hint="E-mail"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:theme="@style/Theme.MaterialComponents.Light.NoActionBar"
app:layout_constraintTop_toBottomOf="@+id/imageView3"
app:layout_constraintVertical_bias="0.07999998">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="290dp"
android:inputType="textEmailAddress"
android:layout_height="60dp" />
</com.google.android.material.textfield.TextInputLayout>
Я использую материальную зависимость 1.1.0. Я уже пытался удалить строку темы (но, конечно, мое приложение зависло, потому что моя основная тема - AppCompat), я также тестировал в пустом проекте, но ничего другого не происходит. Что я могу сделать? Спасибо за вашу помощь
РЕДАКТИРОВАТЬ:
Я частично решил с помощью зависимости материалов в 1.0.0, но почему она не работает с 1.1?