Created
November 12, 2014 20:07
-
-
Save mpociot/c243786769951d3c0cb2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This should use the "ListView" Alloy parser, to support Templates, but it should use the 'createCollectionView' method | |
instead of createListView, createListSection, etc... | |
Is this possible? | |
--> | |
<ListView id="listView" defaultItemTemplate="template" ns="require('de.marcelpociot.collectionview')"> | |
<Templates> | |
<ItemTemplate name="template"> | |
<ImageView bindId="pic" id="icon" /> | |
<Label bindId="info" id="title" /> | |
<Label bindId="es_info" id="subtitle" /> | |
</ItemTemplate> | |
</Templates> | |
<ListSection headerTitle="Fruit / Frutas"> | |
<ListItem info:text="Apple" es_info:text="Manzana" pic:image="/apple.png" /> | |
<ListItem info:text="Banana" es_info:text="Banana" pic:image="/banana.png" /> | |
</ListSection> | |
<ListSection headerTitle="Vegetables / Verduras"> | |
<ListItem info:text="Carrot" es_info:text="Zanahoria" pic:image="/carrot.png" /> | |
<ListItem info:text="Potato" es_info:text="Patata" pic:image="/potato.png" /> | |
</ListSection> | |
</ListView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment