0

我有一个 Titanium Page,我在其中同时使用 ScrollView 和 TableVIew。但是遇到问题——

我的 ScrollView 部分大约是页面的一半,我在下面设置了 Tableview,当我在 Scrollview 上滚动时,没有任何内容向上滚动(因为它只是屏幕的一半),但是当我滚动 TableView 时,只有 tableview 被滚动并且仅在以下部分中也是如此。以上(滚动视图部分在其位置保持静态)

我的代码是:

<Alloy>
<Window id="main_window" title="Profile" navTintColor="white" backgroundColor="white" barImage="/images/NavBackground.png" orientationModes="Titanium.UI.PORTRAIT">
    <ScrollView id="scrollable_view" scrollType="vertical" top="0dp" height="89%" contentWidth="100%">
    </ScrollView>
    <TableView id='list_rows' top="auto" height="100%" separatorColor="#CCCCCC" >
    </TableView>
</Window>
</Alloy>

我还尝试在 Scrollview 中插入 TableView 并将 tableview 的顶部参数设置为 auto 和 400dp(在我的情况下)。

4

1 回答 1

0

TableView放入ScrollView并禁用 的滚动功能TableView

于 2015-04-24T07:38:45.230 回答