material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[TextInputLayout] when edittext height too small,i cant change height

Open jimie-chaos opened this issue 1 year ago • 0 comments
trafficstars

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

jimie-chaos avatar Jul 22 '24 10:07 jimie-chaos