0
我想在我的活动中使用WebView来显示标准登录页面,但是看起来键盘总是覆盖页面的下半部分(并且它不允许您'滚动'未覆盖的部分,就像你期望的那样)。Android软键盘覆盖WebView内容
往上看这个问题,我已经试过平时
android:windowSoftInputMode="adjustResize"
但是这似乎并没有工作。 (我也试过调整潘)
Now I found this issue,但我看过棒棒糖的应用程序滚动webview像你期望发生。
任何想法?我很难过。
编辑另外,我的活动没有使用全屏标志。
这里是我的活动的XML:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_height="56dp"
android:layout_width="match_parent"
android:paddingTop="25dp"
android:fitsSystemWindows="true"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:background="?attr/colorPrimary" />
<WebView
android:id="@+id/webview_login"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
检查 “fitsSystemWindows” 属性 –
@IITAmiya嗯,那没似乎有任何影响。我在Activity中唯一的视图就是工具栏,即使在删除之后,也会出现同样的问题。 – russjr08