使用 titanium alloy 创建水平列表视图

Create horizontal list view with titanium alloy

如何使用 titanium 创建水平列表视图 alloy。 我使用了 layout = "horizontal" 但它不起作用

<ListView id="dynamicListView"  defaultItemTemplate ="image_title">

    <Templates>
        <ItemTemplate name="image_title" height="100">      
              <ImageView bindId="image" id="image"/>                    
        </ItemTemplate>
    </Templates>

    <ListSection layout = "horizontal">
    <ListSection/>

</ListView>

抱歉,您不能创建水平 listView,因为它被设计为水平显示内容:

A list view is used to present information, organized in to sections and items, in a vertically-scrolling view.

您可以使用 TableViewScrollView,它们都支持水平滚动 ;) 干杯