简体   繁体   中英

Create horizontal list view with titanium alloy

How to create horizontal list view with titanium alloy. I have used layout = "horizontal" but it doesn't work

<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>

Sorry but you can't create horizontal listView, as it's been designed to present content horizontally:

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

You can use TableView or ScrollView , they both support horizontal scrolling ;) Cheers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM