在棒棒糖版本软键盘隐藏的EditText [英] Soft keyboard hide EditText in lollipop version

查看:183
本文介绍了在棒棒糖版本软键盘隐藏的EditText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有包含RelativeLayout的为根布局的布局,相对layoout包含ListView控件的顶部,一个EDITTEXT排列在相对布局的底部。 在pre棒棒糖版本的设备,只要软键盘开EDITTEXT推高了,我能看到Editext。 但在棒棒糖软键盘隐藏Editext。 清单文件|adjustResize adjustPanwindowSoftInputMode =:我已经设置机器人。 请帮我

I have a layout which contain RelativeLayout as Root layout,Relative layoout contain ListView at Top and one Edittext align at the bottom of relative layout. In Pre lollipop version devices whenever soft keyboard open Edittext pushed up and I am able to see the Editext. But in lollipop soft keyboard hide the Editext. I have already set android:windowSoftInputMode="adjustPan|adjustResize" in manifest file. Please help me

推荐答案

感谢您的宝贵意见。最后,我已经解决了这个问题。

Thanks for your valuable input. Finally I have fixed this issue.

我发现后面这个问题的原因是应用程序的主题。我的应用程序的主题是

What I found the reason behind this issue is application theme. My application theme was

安卓Theme.Light 中,我发现了这个问题。我只是改变了我的EditText布置活动主题通过设置

android:Theme.Light in which I found this issue. I have only changed the theme of my EditText layout activity by setting

安卓主题=@安卓风格/ Theme.Black.NoTitleBar 例如 <活动     机器人:名称=。activity.LiveStreamingActivity     机器人:标签=@字符串/ title_activity_event_performer     机器人:主题=@安卓风格/ Theme.Black.NoTitleBar     机器人:screenOrientation =画像/>

android:theme="@android:style/Theme.Black.NoTitleBar" e.g. <activity android:name=".activity.LiveStreamingActivity" android:label="@string/title_activity_event_performer" android:theme="@android:style/Theme.Black.NoTitleBar" android:screenOrientation="portrait" />

这解决了我的问题!

这篇关于在棒棒糖版本软键盘隐藏的EditText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆