android - 安卓机上 html input 改这个小水滴颜色的问题
怪我咯
怪我咯 2017-04-17 17:55:47
0
2
748

安卓机上 html input输入文字后,在点击字的中间的时候会出现一个水滴一样的东西,请问可以改这个水滴的颜色吗

如果是安卓机自带的,为什么有些是水滴形状,有些是房屋的形状
html在微信上显示:

手机自带浏览器显示:

微信上输入框的颜色是这样的:

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
阿神
<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>    

Sorry, I read it wrong. You can try modifying the attributes in the theme. I think the system theme has this attribute

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

The shape of the water droplets is the effect of Android 5.0 or later (or adapted to the effect of android design), while the shape of the house is the effect of version 4.x. This depends on the settings of the Android system and the display html application. For example, Huawei's machine is the green water droplet , and it can’t change color = =

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template