Android 非材料主题导致文本输入冻结

Android 非材料主题导致文本输入冻结,android,material-design,android-theme,Android,Material Design,Android Theme,我有一个奇怪的问题。当我使用材质主题时,我的应用程序没有问题,但当我使用theme.Holo.Light时,我有这个问题。当我点击任何文本字段输入、编辑文本或搜索视图时,键盘会弹出,应用程序会变得无响应并冻结,尽管键盘仍在键入。我对主题了解不多,所以我不确定是什么导致了这一现象。我想使用Android版本19,因为我需要更多的Android用户可以访问我的应用程序,所以我不能在Android版本19中使用材质主题 Styles.xml <resources> <!-- Bas

我有一个奇怪的问题。当我使用材质主题时,我的应用程序没有问题,但当我使用theme.Holo.Light时,我有这个问题。当我点击任何文本字段输入、编辑文本或搜索视图时,键盘会弹出,应用程序会变得无响应并冻结,尽管键盘仍在键入。我对主题了解不多,所以我不确定是什么导致了这一现象。我想使用Android版本19,因为我需要更多的Android用户可以访问我的应用程序,所以我不能在Android版本19中使用材质主题

Styles.xml

<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Holo.Light">
    <!-- Customize your theme here. -->
    <item name="android:showAsAction">always</item>
    <item name="android:colorBackground">#3399ff</item>
    <item name="android:logo">@android:color/transparent</item>


</style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.ActionBar">
    <item name="android:background">@drawable/sweat_header</item>
    <item name="android:backgroundStacked">@drawable/sweat_header</item>
    <item name="android:backgroundSplit">@drawable/sweat_header</item>
</style>

</resources>

我不能使用V21XML,因为我使用的是api级别19,而不是21,我认为它与主布局中的代码的关系比主题更大。如果您发布主要活动代码,则会更好。如果没有,我会建议你做一个新的项目,从基地开始。
Make two themes based on the lower and higher versions. I believe that would sort it out.

values/themes.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="AppTheme" parent="AppTheme.Base"/>

    <style name="AppTheme.Base" parent="Theme.AppCompat">
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimary</item>
        <item name="android:windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>

values-v21/themes.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="AppTheme.Base">
    <item name="android:windowContentTransitions">true</item>
    <item name="android:windowAllowEnterTransitionOverlap">true</item>
    <item name="android:windowAllowReturnTransitionOverlap">true</item>
    <item name="android:windowSharedElementEnterTransition">@android:transition/move</item>
    <item name="android:windowSharedElementExitTransition">@android:transition/move</item>
</style>
</resources>

Hope it helps.