alloy
Version:
TiDev Titanium MVC Framework
49 lines • 1.5 kB
text/xml
<Alloy>
<TabGroup>
<Tab title="Basic Rows">
<Window title="Basic Rows">
<TableView>
<HeaderView>
<View backgroundColor="#a00" height="50dp"/>
</HeaderView>
<FooterView>
<View backgroundColor="#0a0" height="50dp"/>
</FooterView>
<TableViewRow><Label>Row 1</Label></TableViewRow>
<TableViewRow><Label>Row 2</Label></TableViewRow>
<TableViewRow><Label>Row 3</Label></TableViewRow>
<TableViewRow><Label>Row 4</Label></TableViewRow>
<TableViewRow><Label>Row 5</Label></TableViewRow>
</TableView>
</Window>
</Tab>
<Tab title="Sections & Rows">
<Window title="Sections & Rows">
<TableView filterAttribute="title">
<SearchBar platform="android,ios"/>
<TableViewSection>
<HeaderView>
<View backgroundColor="#a00" height="50dp"/>
</HeaderView>
<FooterView>
<View backgroundColor="#0a0" height="50dp"/>
</FooterView>
<TableViewRow title="Row 1"/>
<TableViewRow title="Row 2"/>
<TableViewRow title="Row 3"/>
</TableViewSection>
<TableViewSection headerTitle="Section 2">
<TableViewRow title="Row 1"/>
<TableViewRow title="Row 2"/>
<TableViewRow title="Row 3"/>
</TableViewSection>
<TableViewSection headerTitle="Section 3">
<TableViewRow title="Row 1"/>
<TableViewRow title="Row 2"/>
<TableViewRow title="Row 3"/>
</TableViewSection>
</TableView>
</Window>
</Tab>
</TabGroup>
</Alloy>