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

TextInputEditText paddingEnd Invalid #4620

Open
pangli opened this issue Feb 24, 2025 · 1 comment
Open

TextInputEditText paddingEnd Invalid #4620

pangli opened this issue Feb 24, 2025 · 1 comment

Comments

@pangli
Copy link

pangli commented Feb 24, 2025

Description:
Set TextInputEditText text distance from the rightmost 180dp, use paddingEnd is invalid, use drawablePadding to take effect instead.
Expected behavior:
The actual effect of setting paddingEnd
Image
Expected results
Image

Source code:

<com.google.android.material.textfield.TextInputLayout
            android:id="@+id/phone_view"
            style="@style/MogoPhoneTextInputLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent">

            <com.google.android.material.textfield.TextInputEditText
                style="@style/MogoPhoneTextInputEditText"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:paddingEnd="180dp" />
</com.google.android.material.textfield.TextInputLayout>

Android API version:
Android API 34

Material Library version:
com.google.android.material:material:1.12.0

@drchen
Copy link
Contributor

drchen commented Feb 24, 2025

That's an interesting bug. Hunter, are you able to help triage?

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

No branches or pull requests

3 participants