1

我的活动中有页脚栏。我使用片段作为页脚栏。这是屏幕截图。屏幕_1. 当我将文本添加到 中EditText时,键盘显示如下。屏幕_2. 我想在键盘出现时隐藏页脚。我android:windowSoftInputMode="adjustPan"在活动中使用。我想知道任何建议。

谢谢。

4

3 回答 3

0

我遇到了同样的问题,我刚刚从清单文件中删除了 android:windowSoftInputMode="adjustPan" 并且得到了所需的输出

于 2013-07-19T09:59:36.203 回答
0

我遇到了同样的情况,但没有找到任何解决方案,所以刚刚开始了另一个关于触摸 textview 的活动。在此活动中再次完成活动时,从下一个活动的文本视图中获取结果并将文本放置在当前活动的文本视图中。有用

于 2013-07-19T09:20:31.833 回答
-1
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"
于 2017-04-06T05:11:25.257 回答