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] when edittext height too small,i cant change height #4236

Open
jimie-chaos opened this issue Jul 22, 2024 · 0 comments
Open
Labels

Comments

@jimie-chaos
Copy link

Description: when edittext height too small,i cant change height,I've tried modifying the minheight, padding,paddingtop,paddingbottom and edittext margintop/bootom,so i thank it's bug

Expected behavior: TextInputLayout height > EditText height

Source code: empty

Minimal sample app repro:

<com.google.android.material.textfield.TextInputLayout
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:background="@color/black_text"
    app:hintEnabled="false"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintTop_toBottomOf="@id/input_group"
    app:layout_constraintStart_toStartOf="parent">
    <com.google.android.material.textfield.TextInputEditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:hint="@string/pls_select_person_in_charge"
        android:inputType="text"
        android:lines="1"
        android:minHeight="0dp"
        android:paddingHorizontal="@dimen/space_default"
        android:paddingVertical="@dimen/space_3"
        android:layout_margin="0dp"
        android:layout_marginTop="0dp"
        android:textColorHint="@color/gray_default"
        android:textSize="@dimen/size_text" />
</com.google.android.material.textfield.TextInputLayout>

Android API version: 34

Material Library version: 1.12.0

Device: XIAOMI NOTE 12 PRO

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

No branches or pull requests

1 participant