Softkeyboard阻塞的EditText [英] Softkeyboard blocking EditText

查看:115
本文介绍了Softkeyboard阻塞的EditText的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下问题:

我有一个活动,使用户发布一些文章评论。当用户点击的EditText 字段中的注释可以发布,在 softkeyboard 最终挡住了文本字段,这样用户不能看到的是什么类型的。我怎样才能确保的EditText 字段总是至少部分,可见?

I have an activity which enables a user to post comments on some article. When the user taps the EditText field where the comment can be posted, the softkeyboard ends up blocking the text field such that the user can't see what is being typed. How can I make sure that the EditText field is always, at least partly, visible?

推荐答案

您的活动的内容添加到一个滚动的布局,当视图的EditText获得焦点手动滚动滚动型。

Add the contents of your activity to a scrollable layout and when the EditText view gets focus manually scroll the ScrollView.

这篇关于Softkeyboard阻塞的EditText的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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