I have two textinputlayout one in activty and one in bottom sheet dialog, both have same style but the look different, when i focus on the textinputlayout in the activity the stroke become in primary color, and the second textinputlayout in the bottom sheet dialogstay grey when I focused both have same thing
my app style is Theme.MaterialComponents.Light.NoActionBar
this is the one in the activity
<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>
and this is in bottom sheet dialog
<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"/>