且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 android 中更改 EditText 气泡颜色(光标下)?

更新时间:2023-01-27 20:13:28

更改 res/values/styles.xml 中的颜色.气泡使用colorAccent:

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

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
    <!-- Other theme overrides here -->
    <item name="colorAccent">@color/Gray2</item>
</style>

在上面的 <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.