maxLine already set but jump line

1

I know that if you use the native TextView of Android and set the android:maxLines="1" it does not let the user skip line.

But I'm using the Textviews of <com.rengwuxian.materialedittext.MaterialEditText :

But I put maxLines="1" and it does not work.

My question is that in this context maxLine does not work. Would the problem be because of the library you do 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" />

    
asked by anonymous 01.12.2017 / 22:32

1 answer

0

Library uses:

app:met_singleLineEllipsis="true"
    
05.12.2017 / 00:51