Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextInputLayout] prefix is overlap with text #4231

Open
Mahes2 opened this issue Jul 19, 2024 · 0 comments · May be fixed by #4287
Open

[TextInputLayout] prefix is overlap with text #4231

Mahes2 opened this issue Jul 19, 2024 · 0 comments · May be fixed by #4287
Labels

Comments

@Mahes2
Copy link

Mahes2 commented Jul 19, 2024

Description:
I have TextInputLayout and TextInputEditText inside a recycler view. when using prefix, the prefix text overlaps with the text itself.
Screenshot 2024-07-19 211946

Expected behavior:
prefix and actual text must not be overlap

Source code:

   <com.google.android.material.textfield.TextInputLayout
       android:id="@+id/textInputLayout"
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       app:prefixText="@string/prefix_currency"
       style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
       android:hint="@string/price">

       <com.google.android.material.textfield.TextInputEditText
           android:layout_width="match_parent"
           android:layout_height="wrap_content"
           android:text="100"
           android:id="@+id/txtVariantPriceEdt" />
   </com.google.android.material.textfield.TextInputLayout>

Android API version:
30 (Android 11)

Material Library version: Material Android Library version you are using here (e.g., 1.1.0-alpha07)
'com.google.android.material:material:1.12.0'
'com.google.android.material:material:1.13.0-alpha04'

Device: Device on which the bug was encountered here
Samsung A50

To help us triage faster, please check to make sure you are using the latest version of the library.

We also happily accept pull requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant