Open rgdixit opened 3 years ago
What's in this @style/PrimaryInputTextLayoutOutlined and can you reproduce the bug in a sample app using the same style?
This is the @style/PrimaryInputTextLayoutOutlined:
`
<item name="android:focusable">true</item>
<item name="boxCornerRadiusBottomEnd">@dimen/dp6</item>
<item name="boxCornerRadiusBottomStart">@dimen/dp6</item>
<item name="boxCornerRadiusTopEnd">@dimen/dp6</item>
<item name="boxCornerRadiusTopStart">@dimen/dp6</item>
<item name="boxStrokeColor">@color/input_field_selector</item>
<item name="hintTextColor">@color/hint_text_color</item>
</style>`
Could you provide a sample app that reproduces the issue?
I ran into this problem as well, It seems to only occur if the fields are placed inside a view tree that contains a 'background' on any parent element.
I have a sample project that shows the issue here: Sample Project
In the repo is a demo video of the bug happening: Demo
In the sample I'm dynamically adding/removing a background, but it happens whether it's specified in XML or you do it through code.
Edit I just did another test where I placed the background on an element that isn't an ancestor element of the field, but just a view that the field overlapped and the bug still occurred. Just in case that's helpful in some way too.
I have the same problem. Is there a solution?
I just received a report from a user of this occurring on a Pixel 4xl, so it appears this is not just limited to Samsung devices.
Is this still reproducible?
Will this work if you override ?attr/colorControlActivated
in your themes?
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.
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">
`
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+