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應用的設置,比如華為的機器就是那個綠色水滴,而且還不能變色= =
相關文章:
1. 關于nginx location配置的問題,root到底是什么2. angular.js - angularjs的自定義過濾器如何給文字加顏色?3. 關于docker下的nginx壓力測試4. docker鏡像push報錯5. angular.js - angular內容過長展開收起效果6. linux - openSUSE 上,如何使用 QQ?7. linux - 升級到Python3.6后GDB無法正常運行?8. 并發(fā)模型 - python將進程池放在裝飾器里為什么不生效也沒報錯9. 大家好,請問在python腳本中怎么用virtualenv激活指定的環(huán)境?10. python的前景到底有大?如果不考慮數(shù)據(jù)挖掘,機器學習這塊?
