made by / Abd El-star Ahmed & Hany Mohamed
componentsui
layout
Absolute Horizontal Vertical
tabs
Index.xml :
<TabGroup>
<Tab title="Tab 1" icon="KS_nav_ui.png">
<Window title="Tab 1">
<Label> I am Window 1 </Label>
</Window>
</Tab>
<Tab title="Tab 2" icon="KS_nav_views.png">
<Window title="Tab 2">
<Label> I am Window 2 </Label>
</Window>
</Tab>
</TabGroup>
scrollview
Index.xml :
<Alloy>
<Windows>
<ScrollView id=‘list’>
<View id=‘background’>
<ImageView id=‘avatar’/>
<label>Hany</label>
</View>
</ScrollView>
</Windows>
</Alloy>
Index.tss :
‘#list’:{
height : Ti.UI.SIZE,
width : Ti.UI.SIZE,
layout : ’vertical’,
backgroundColor : ‘blue’
}
‘#background’:{
backgroundImage : ‘/images/row.png’,
width : ‘100%’,
hight : ‘20%’,
top : ‘5%’,
left : ‘5%’
}
‘#avatar’:{
image : ‘/images/Hany.png’,
width : ’20%’,
top : ‘5%’,
left : ‘65%’
}
‘label’:{
height : Ti.UI.SIZE
width : Ti.UI.SIZE
top : ‘10%’,
left : ‘35%’,
color : ‘white’,
font : {fontSize:18}
}
scrollview
Recap
ui
layout
Absolute Horizontal Vertical
Tabs
Scroll view
Any question ?
Thank you…

Appsplash'16 session (3) "Ui components"