This file contains 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
Merhaba Zalim Dünya! |
This file contains 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
Titanium.UI.setBackgroundColor('#000'); | |
// TAB GRUBU OLUŞTUR | |
var tabGroup = Titanium.UI.createTabGroup(); | |
// ANA WİNDOW OLUŞTURULUR BUNU HTML'DE BODY GİBİ DÜŞÜNEBİLİRİSNİZ | |
var win1 = Titanium.UI.createWindow({ | |
title:'Tab 1', | |
backgroundColor:'#fff' | |
}); | |
var tab1 = Titanium.UI.createTab({ | |
title:'Tab 1', |
This file contains 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
//Tab bar'ını gizleme için tabBarHidden:true, | |
var win1 = Titanium.UI.createWindow({ | |
title:'My Drilldown', | |
backgroundColor:'#fff', | |
tabBarHidden: true, | |
}); |
This file contains 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
//Tab bar'ını gizleme için tabBarHidden:true, | |
var win1 = Titanium.UI.createWindow({ | |
title:'My Drilldown', | |
backgroundColor:'#fff', | |
tabBarHidden: true, | |
}); |
This file contains 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
var main_menu = Ti.UI.createTableView({ | |
style:Titanium.UI.iPhone.TableViewStyle.GROUPED, | |
scrollable:false | |
}); |
This file contains 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
var firstItemRow = Ti.UI.createTableViewRow({ | |
hasChild: true | |
}); | |
var firstItemLabel = Ti.UI.createLabel({ | |
left: 9, | |
text: "Birinci" | |
}); | |
firstItemRow.add(firstItemLabel); | |
main_menu.appendRow(firstItemRow); |
This file contains 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
var sub_win1 = Ti.UI.createWindow({title:'Alt Window-1'}); | |
var sub_table1 = Ti.UI.createTableView({style:Titanium.UI.iPhone.TableViewStyle.GROUPED}); | |
var sub_row1 = Ti.UI.createTableViewRow(); | |
var sub_label1 = Ti.UI.createLabel({left:9, text: "Alt Menu 1!"}); | |
sub_row1.add(sub_label1); | |
sub_table1.appendRow(sub_row1); | |
sub_win1.add(sub_table1); | |
// sub window 2 | |
var sub_win2 = Ti.UI.createWindow({title:' Alt Window 2'}); | |
var sub_table2 = Ti.UI.createTableView({style:Titanium.UI.iPhone.TableViewStyle.GROUPED}); |
This file contains 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
var sub_win1 = Ti.UI.createWindow({title:'Alt Window-1'}); | |
var sub_table1 = Ti.UI.createTableView({style:Titanium.UI.iPhone.TableViewStyle.GROUPED}); | |
var sub_row1 = Ti.UI.createTableViewRow(); | |
var sub_label1 = Ti.UI.createLabel({left:9, text: "Alt Menu 1!"}); | |
sub_row1.add(sub_label1); | |
sub_table1.appendRow(sub_row1); | |
sub_win1.add(sub_table1); | |
// sub window 2 | |
var sub_win2 = Ti.UI.createWindow({title:' Alt Window 2'}); | |
var sub_table2 = Ti.UI.createTableView({style:Titanium.UI.iPhone.TableViewStyle.GROUPED}); |
This file contains 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
// add the event to the first item | |
firstItemRow.addEventListener('click', function (e) { | |
tab1.open(sub_win1); | |
}); | |
// add the event to the second item | |
secondItemRow.addEventListener('click', function (e) { | |
tab1.open(sub_win2); | |
}); | |
// add the event to the third item | |
thirdItemRow.addEventListener('click', function (e) { |
This file contains 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
Titanium.UI.setBackgroundColor('#000'); | |
// TAB GRUBU OLUŞTUR | |
var tabGroup = Titanium.UI.createTabGroup(); | |
// ANA WİNDOW OLUŞTURULUR BUNU HTML'DE BODY GİBİ DÜŞÜNEBİLİRİSNİZ | |
var win1 = Titanium.UI.createWindow({ | |
title:'kayhankirgiz.com', | |
backgroundColor:'#fff' , | |
tabBarHidden:true | |
}); | |
var tab1 = Titanium.UI.createTab({ |
OlderNewer