EditText和AutoCompleteTextView設置文字選中顏色 大多數Android Rom上,文本選擇的背景色都是很好看的鮮綠色, 但是在某些垃圾的三星手機上,居然是藍色,令人惡心反感,其實完全可以通過程序來修改,文本的默認選中背景色.
所用API解釋
AutoCompleteTextView 設置效果
實現代碼
<AutoCompleteTextView
android:id="@+id/act_input"
android:layout_below="@id/et_inputBox"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColorHighlight="#B4DF87"
/>
</LinearLayout>
新聞熱點
疑難解答
圖片精選