2

I'm using Support Design Library. I created EditText but when I'm writting something there is some blue underline of edit text like in the picture below

enter image description here

Here is my code:

 <android.support.design.widget.TextInputLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <EditText
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="Test"
                    android:inputType="none"
                    android:singleLine="true" />
            </android.support.design.widget.TextInputLayout>

How to fix that?

4

1 回答 1

1

It seems autocomplete/suggestions are open. Try this:

<android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="Test"
            android:inputType="textNoSuggestions"
            android:singleLine="true" />
</android.support.design.widget.TextInputLayout>
于 2015-11-10T13:16:39.830 回答