Hiren Patel Hiren Patel - 1 year ago 408
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.

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download