简体   繁体   English

在关闭键盘时在Android中闪烁?

[英]Flickering in Android while keyboard dismissal?

在此处输入图片说明 I am having issue with Android Tablet. 我在Android平板电脑上遇到问题。 I have created a runtime views as shown in Attachment(tab_before_error.png), when user clicks on Edittext then keyboard appears, after typing something I am making some operations in aftertextchanged callback. 我创建了一个运行时视图,如Attachment(tab_before_error.png)所示,当用户单击Edittext然后出现键盘时,在键入某些内容后,我将在aftertextchanged回调中进行一些操作。 When I dismiss the Keyboard, there is Flickering as shown in attachment(tab_error.png). 当我关闭键盘时,会出现闪烁,如附件(tab_error.png)所示。 What's the issue, why the system not able to render the UI immediately once the keyboard dismissal. 问题是什么,为什么一旦键盘被解雇,系统就无法立即呈现UI。

尝试将以下行放在清单中的ur活动标签中。

              android:windowSoftInputMode="stateHidden|adjustNothing"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM