2016-03-02 260 views

回答

1
<android.support.v7.widget.AppCompatEditText 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    app:backgroundTint="@color/red"/> 
+0

謝謝@kris larson。它工作 – Sam

+0

它可以做到改變下拉列表中斷線的顏色嗎? – Sam

+0

沒有完成不同的http://stackoverflow.com/questions/27801498/multiautocompletetextview-suggestion-separator-color –

1

編輯文本下劃線的顏色設置爲主題的colorAccent。如果您不想更改整個應用程序的colorAccent,則可以製作自定義主題並將其應用於編輯文本視圖android:theme

相關問題