我的活动中有页脚栏。我使用片段作为页脚栏。这是屏幕截图。. 当我将文本添加到 中
EditText
时,键盘显示如下。. 我想在键盘出现时隐藏页脚。我
android:windowSoftInputMode="adjustPan"
在活动中使用。我想知道任何建议。
谢谢。
我的活动中有页脚栏。我使用片段作为页脚栏。这是屏幕截图。. 当我将文本添加到 中
EditText
时,键盘显示如下。. 我想在键盘出现时隐藏页脚。我
android:windowSoftInputMode="adjustPan"
在活动中使用。我想知道任何建议。
谢谢。
我遇到了同样的问题,我刚刚从清单文件中删除了 android:windowSoftInputMode="adjustPan" 并且得到了所需的输出
我遇到了同样的情况,但没有找到任何解决方案,所以刚刚开始了另一个关于触摸 textview 的活动。在此活动中再次完成活动时,从下一个活动的文本视图中获取结果并将文本放置在当前活动的文本视图中。有用
var originalHeight = document.documentElement.clientHeight;
var originalWidth = document.documentElement.clientWidth;
$(window).resize(function() {
// Control landscape/portrait mode switch
if (document.documentElement.clientHeight == originalWidth &&
document.documentElement.clientWidth == originalHeight) {
originalHeight = document.documentElement.clientHeight;
originalWidth = document.documentElement.clientWidth;
}`enter code here`
// Check if the available height is smaller (keyboard is shown) so we hide the footer.
if (document.documentElement.clientHeight < originalHeight) {
$('.footer').hide();
} else {
$('.footer').show();
}
});
try this it will work and give class="footer"