我正在尝试在 Android 应用程序的布局上的滚动视图中使用 web 视图。 (也有 tabhost,但这并不重要)
是这样的:
<ScrollView
android:layout_height="fill_parent"
android:layout_width="fill_parent"
>
<LinearLayout
android:id="@+id/ll1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<WebView
android:id="@+id/webview1"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:scrollbars="none"
/>
</LinearLayout>
</ScrollView>
问题是,当我尝试在我的 webview 上加载使用 jquery mobile 制作的 url 时,它开始增长到无限,并且 web 内容下方有一个非常巨大的空白,并且线性布局和滚动视图也开始增长。
有人有解决办法吗?
解决方案不是:
- 更改 xml 布局上的任何布局参数,如layout_with 或layout_height。
- 我必须在滚动视图中使用网络视图,因为我必须滚动很多其他东西,所以这是不可能的。
- 我真的知道这个问题只出现在jquery mobile上。我尝试从 de web 中删除 de jquery mobile js 文件,结果很完美。
- 另外,我知道如果我在不在滚动视图内的网页视图上加载此网址,则不会有任何问题,因此问题是滚动视图、网页视图和 jquery mobile 的组合。
多谢!!!
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)