【发布时间】:2016-09-15 09:45:53
【问题描述】:
我用的是androidWebView,下面是XML布局:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<WebView android:id="@+id/medical_webview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true"
android:layout_alignParentTop="true">
</WebView>
</ScrollView>
来自WebView,文本字段位于页面底部。一旦我们关注文本字段,UI 就不会自动向上滚动并隐藏文本字段。
更多信息,我正在使用 Fragment 并且已经尝试使用 adjustResize|adjustPan。
【问题讨论】:
-
请更新您的 xml 布局
-
你在哪里定义了adjustresize|adjustpan?
-
-
@Anjali 是的尝试过
-
我在基础活动的 Manifest 文件中定义了adjustresize
标签: android android-layout android-studio android-fragments webview