material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.27k stars 3.06k forks source link

[TextInputLayout] Input invisible on Samsung devices. #1882

Open rgdixit opened 3 years ago

rgdixit commented 3 years ago

Description: When I enter text into the Input field, the text is not visible at all.

Expected behavior: It should be visible as in the screen shot attached. Screenshot_2020-11-18-16-29-04-743_com minduplabs debug

Source code: ` <com.google.android.material.textfield.TextInputLayout android:id="@+id/phoneInputLayout" style="@style/PrimaryInputTextLayoutOutlined" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dp24" android:layout_marginTop="@dimen/dp40" android:layout_marginEnd="@dimen/dp24" android:hint="@string/enter_mobile_number">

    <com.google.android.material.textfield.TextInputEditText
        android:id="@+id/phoneNumberInput"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fontFamily="@font/circularstd_book"
        android:imeOptions="actionDone"
        android:inputType="phone"
        android:maxLines="1"
        android:padding="@dimen/dp20"
        android:textSize="@dimen/sp16" />

</com.google.android.material.textfield.TextInputLayout>

`

I am using app theme Theme.MaterialComponents.DayNight.NoActionBar

Android API version: Android 10 (SDK 29)

Material Library version: 1.3.0-alpha03, 1.3.0-alpha02

Device: Samsung Galaxy S10+

wcshi commented 3 years ago

What's in this @style/PrimaryInputTextLayoutOutlined and can you reproduce the bug in a sample app using the same style?

rgdixit commented 3 years ago

This is the @style/PrimaryInputTextLayoutOutlined:
`