[英]How to disable custom keyboard fullscreen?
InputMethodService中的以下代碼可以解決您的問題:
@Override
public boolean onEvaluateFullscreenMode() {
return false;
}
在某些方法中,您可以在橫向模式下禁用此全屏鍵盤,
@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
outAttrs.imeOptions = EditorInfo.IME_FLAG_NO_EXTRACT_UI;
}
要么
在xml的EditText
中添加以下行,
android:imeOptions="flagNoExtractUi"
要么
editText.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.