0
我遇到了一个奇怪的问题。当我使用Material主题时,我的应用程序没有问题,但是当使用Theme.Holo.Light时,我遇到了这个问题。当我点击任何文本字段输入时,EditText或SearchView(弹出键盘),应用程序变得无响应并冻结,尽管键盘仍然键入。我对主题了解不多,所以我不确定是什么导致了这一点。我想使用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>
我不能有一个v21的XML,因为我正在建设和瞄准API级别19,而不是21 –
我相信它主要的布局比主题更多的代码。如果您发布主要活动代码会更好。如果没有,我建议你做一个新的项目,并从基地开始。 – Limbu