2015-11-10 168 views
2

我正在使用Support Design Library。我創建EditText,但是當我書面方式有一種東西,編輯文本的一些藍色下劃線像下面Android材質EditText

enter image description here

這裏是我的代碼的圖片:

<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> 

如何解決呢?

回答

1

似乎自動完成/建議已打開。試試這個:

<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>