简体   繁体   中英

How to detect that the soft keyboard input method will cover entire screen?

I'm creating an app where users can click on a tab and soft keyboard will be shown programmatically. However, I don't want to display the soft keyboard if it's going to cover the whole screen (like extracted EditText) like this:

在此输入图像描述

Detecting screen orientation might help, but AFAIK on tablets, the soft keyboard won't cover the whole screen even on landscape. So is there any other way?

不确定它是否适合您,但也许您可以禁用全屏软输入而不是找出检测部分。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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