У меня есть два textinputlayout, один в activty и один в нижнем диалоговом окне, оба имеют одинаковый стиль, но выглядят по-разному, когда я сосредотачиваюсь на textinputlayout в действии, обводка становится основным цветом, а вторая textinputlayout на нижнем листеу серого в диалоговом окне, когда я сфокусировался, есть одно и то же
мой стиль приложения - Theme.MaterialComponents.Light.NoActionBar
, это стиль действия
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/colorGrey">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/add_contact_name_et"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="שם"
android:inputType="text"
android:singleLine="true"
android:textColor="@color/colorBlack" />
</com.google.android.material.textfield.TextInputLayout>
, и это в нижнем диалоговом окне
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/colorGrey">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/add_task_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="text"
android:hint="משימה חדשה"
android:textSize="18dp"
android:maxLines="3"
android:textColor="@color/colorBlack"/>