Home  >  Q&A  >  body text

android - 安卓机上 html input 改这个小水滴颜色的问题

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

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

手机自带浏览器显示:

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

怪我咯怪我咯2740 days ago715

reply all(2)I'll reply

  • 阿神

    阿神2017-04-17 17:57:47

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

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 17:57:47

    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 = =

    reply
    0
  • Cancelreply