android - 安卓機上 html input 改這個小水滴顏色的問題
問題描述
安卓機上 html input輸入文字后,在點擊字的中間的時候會出現(xiàn)一個水滴一樣的東西,請問可以改這個水滴的顏色嗎
如果是安卓機自帶的,為什么有些是水滴形狀,有些是房屋的形狀html在微信上顯示:
手機自帶瀏覽器顯示:
微信上輸入框的顏色是這樣的:
問題解答
回答1:<style name='Widget.TextView'> <item name='android:textAppearance'>?android:attr/textAppearanceSmall</item> <item name='android:textSelectHandleLeft'>?android:attr/textSelectHandleLeft</item> <item name='android:textSelectHandleRight'>?android:attr/textSelectHandleRight</item> <item name='android:textSelectHandle'>?android:attr/textSelectHandle</item> </style>
不好意思,看錯了,你可以試著修改theme中的屬性試試,我看系統(tǒng)主題里是有這個屬性的
<style name='Theme'><!-- Text selection handle attributes --><item name='textSelectHandleLeft'>@android:drawable/text_select_handle_left</item><item name='textSelectHandleRight'>@android:drawable/text_select_handle_right</item><item name='textSelectHandle'>@android:drawable/text_select_handle_middle</item><item name='textSelectHandleWindowStyle'>@android:style/Widget.TextSelectHandle</item> </style> 回答2:
水滴的形狀是android 5.0以后(或者適配了android design的效果),而房屋狀是4.x版本的效果,此項依賴android系統(tǒng)和顯示html應用的設置,比如華為的機器就是那個綠色水滴,而且還不能變色= =
相關(guān)文章:
1. css3 - sublime text2 的less2css插件怎么使用2. javascript - 微信公眾號網(wǎng)頁使用redux如何管理用戶刷新?3. css3 - 求clearfix使用方法4. html5 - z-index在瀏覽器調(diào)試有效 手機測試無效5. javascript - 微信小程序 如何實現(xiàn)這種左滑動出現(xiàn)刪除的辦法?有相關(guān)api嗎?6. css - 不用position:absolute怎么實現(xiàn)類似的功能7. angular.js使用$resource服務把數(shù)據(jù)存入mongodb的問題。8. 關(guān)于docker下的nginx壓力測試9. docker-machine添加一個已有的docker主機問題10. angular.js - angularjs的自定義過濾器如何給文字加顏色?
