2014-04-18 39 views
2

我有一个非常基本的web视图的应用程序,这是layout.xml为什么我的视图在显示键盘时无法调整大小?

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="vertical" > 
    <WebView xmlns:android="http://schemas.android.com/apk/res/android" 
     android:id="@+id/webview" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     /> 
</LinearLayout> 

在清单中,我有:

android:windowSoftInputMode="stateVisible|adjustResize" 

在页面我加载,有一个输入的页面底部。当我点击它时,键盘会显示,但会遮挡它。它是而不是视图缩小但不滚动的情况,因为我无法滚动webview以显示键盘可见的输入。我究竟做错了什么?

+0

它还在调整大小吗?也许你可以使用'adjustPan'来移动它,使得聚焦区域可见? – Szymon

回答

相关问题