Hiren Patel Hiren Patel - 1 month ago 33x
Android Question

How to change EditText bubble color (under cursor) in android?

How to change the color of

bubble in android, I could do change the cursor drawable but I want change color of Bubble, please share idea on it.

Reference screenshot:

enter image description here

Any help would be appreciated.


Change the color in your res/values/styles.xml. The bubble uses colorAccent:

<!-- Base application theme. -->
    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/DarkBlue</item>
        <item name="colorPrimaryDark">#01517f</item>
        <item name="colorAccent">@color/Gray2</item>

In the above <item name="colorAccent">@color/Gray2</item> is the line where you put the color you want for your bubble.