1

我有 webview 和 listview。可能是不同的情况。WebView 可以为空或具有长字符串数据。还有listview:空行或大计数行。我想在 webview 上查看数据。向下滚动。在 webview 之后,我想查看 listview 的所有数据。我这样做:滚动视图 - 线性布局 - WebView - ListView。

<ScrollView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

 <LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

 <WebView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >
</WebView>

 <ListView
    android:layout_width="fill_parent"
    android:layout_weight="1"
    android:layout_height="wrap_content" >
</ListView>

</LinearLayout>
</ScrollView>

我看到webview正常。但我看到 listview 的尺寸很短。任何原因:webview 为空或有数据,listview 很快。

4

1 回答 1

0

多谢你们。

我将带有数据的列表视图删除到另一个活动。

于 2013-02-05T23:27:27.340 回答