我在这里做了一个不合适的事情,我知道它,但我有一个嵌套在horizontalscrollview中的webview。 (我需要更多的滚动控制比网页视图提供。)内容伸展填充HorizontalScrollView
布局看起来像这样:
<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webRel"
android:layout_below="@+id/titlebar"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<WebView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/webZ"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</HorizontalScrollView>
而结果如下:
web视图未填满horizontalscrollview 。 horizontalscrollview提交视图,所以我想我可以说webview并没有填充视图,即使我已经设置为fill_parent。我真的很喜欢它,如果有人会帮助我弄清楚如何让webview在横向上填充horizontalscrollview ...因为然后我测量高度并使用该测量对文本进行分页(然后将文本分段显示所以我选择了horizontalscrollview)
:d
(或者,更清洁的方式建议,在网页视图平滑水平滚动条也将是有益的)
救了我的一天:) – tacone 2011-03-26 15:44:47
我以前遇到过这个问题,但今天我忘了我是如何解决它。现在你救了我,我敢打赌你是医生^ _ ^ – neevek 2012-08-16 11:13:15