如何从EditText中删除光标气泡的白色背景

时间:2017-06-21 11:14:01

标签: android android-edittext

如何从EditText

中删除气泡的白色背景

enter image description here

以下是来自版本21的 Style.xml 的应用程序主题

 <style name="MyTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:textColor">@color/textColorPrimary</item>
    <item name="windowActionModeOverlay">true</item>
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="android:navigationBarColor">@color/black</item>
    <item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
    <item name="android:textAppearance">@style/DefaultTextAppearance</item>
    <item name="android:popupBackground">@color/white</item>
    <item name="android:textColorPrimary">@android:color/black</item>
    <item name="android:textColorSecondary">@android:color/white</item>
    <item name="actionMenuTextColor">@android:color/black</item>
    <item name="colorControlNormal">@color/dividerDark</item>
    <item name="colorControlActivated">@color/colorPrimaryLight</item>
    <item name="colorControlHighlight">@color/colorPrimaryLight</item>
    <item name="actionModeStyle">@style/ActionMode</item>
    <item name="android:actionModeStyle">@style/ActionMode</item>
    <item name="android:splitMotionEvents">false</item>
    <item name="android:windowEnableSplitTouch">false</item>
    <item name="android:windowDisablePreview">true</item>
    <item name="android:windowBackground">@color/transparent</item>
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowContentTransitions">true</item>
    <item name="android:windowAllowEnterTransitionOverlap">true</item>
    <item name="android:windowAllowReturnTransitionOverlap">true</item>
</style>

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。这是由于 android:popupBackground ,删除后它工作正常。