maxLine already set but jumps line

Asked

Viewed 24 times

1

I know if using the native Textview android and set the android:maxLines="1" it does not let the user skip line.

But I’m using Textviews from <com.rengwuxian.materialedittext.MaterialEditText:

But I put the maxLines="1" and it doesn’t work.

My doubt is that in this context the maxLine does not work. The problem would be because the library does not accept ?

<com.rengwuxian.materialedittext.MaterialEditText
    android:id="@+id/rua"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="20dp"
    android:layout_marginStart="20dp"
    android:hint="@string/rualHintCadastrarCliente"
    android:maxLines="1"
    app:met_floatingLabel="highlight"
    app:met_iconLeft="@drawable/ic_person_pin_circle_black_24dp"
    app:met_iconPadding="11dp" />

maxLine setado e pulando linha

1 answer

0


Library utilizes:

app:met_singleLineEllipsis="true"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.