1

When trying to edit long text inside TextInputEditText, the focus goes always to the bottom, so the top (where actually the cursor is) stays out of the screen and you cannot see actually what you are typing. See a GIF showing the TextInputEditText problem that I describe.

My xml:

<com.google.android.material.textfield.TextInputLayout
    style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:hint="Notes"
    app:boxBackgroundColor="@android:color/transparent"
    app:hintAnimationEnabled="false"
    app:passwordToggleEnabled="false">

    <com.google.android.material.textfield.TextInputEditText
        android:id="@+id/notes"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Notes"
        android:imeOptions="flagNoExtractUi"
        android:inputType="textMultiLine" />
</com.google.android.material.textfield.TextInputLayout>

Material library version:

implementation 'com.google.android.material:material:1.5.0'
erkan.molla.dev
  • 170
  • 2
  • 11

1 Answers1

0

The issue has been fixed with this commit so using the latest beta release seems to be working just fine:

implementation 'com.google.android.material:material:1.6.0-beta01'
erkan.molla.dev
  • 170
  • 2
  • 11