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 win = Ti.UI.createWindow(); | |
var web = Ti.UI.createWebView({ | |
html:'<img src="test.jpg"/>', | |
//url:'http://appcelerator.com' | |
}); | |
win.add(web); | |
var button = Ti.UI.createButton({ |
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 win1 = Titanium.UI.createWindow(); | |
var mapView = Ti.Map.createView({ | |
mapType: Ti.Map.STANDARD_TYPE, | |
region:{ | |
latitude:33.74511, longitude:-84.38993, | |
latitudeDelta:0.5, longitudeDelta:0.5 | |
}, | |
animate:true, | |
regionFit: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 win = Ti.UI.currentWindow; | |
Titanium.PageFlip = Ti.PageFlip = require('ti.pageflip'); | |
var pdf = 'http://assets.appcelerator.com.s3.amazonaws.com/docs/Appcelerator-IDC-Q1-2011-Mobile-Developer-Report.pdf'; | |
var fileName = pdf.split('/').pop(); | |
var pdfFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, fileName); | |
function downloadPDF() { | |
var progressBar = Ti.UI.createProgressBar({ max: 1, min: 0, value: 0, visible: true }); | |
win.add(progressBar); |
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 win = Titanium.UI.createWindow({ | |
backgroundColor:'white' | |
}); | |
win.open(); | |
var toolbar = Titanium.UI.createView({ | |
width:50, | |
borderColor:'#000', |
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 win1 = Titanium.UI.createWindow({ | |
title:'Tab 1', | |
backgroundColor:'#fff' | |
}); | |
var scrollable = Ti.UI.createScrollableView({ | |
top:0, | |
bottom:0, | |
left:0, |
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 win = Ti.UI.createWindow( | |
{ | |
title: "360 Image Rotation" | |
}); | |
var images = []; | |
var imageCount = 4; | |
var totalCount = imageCount; |
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 win = Titanium.UI.createWindow(); | |
var item1 = Ti.UI.createView({ | |
top:166, | |
left:180, | |
height:87, | |
width:60, | |
backgroundColor:'blue' | |
}); |
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 win = Ti.UI.createWindow(); | |
var scrollView = Ti.UI.createScrollView({ | |
contentWidth:'auto', | |
contentHeight:'auto', | |
left:0, right:0, | |
top:200 | |
}); | |
var imageCount = 24; |
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 win = Ti.UI.createWindow(); | |
var tabGroup = Ti.UI.createTabGroup(); | |
function indicator(count, top, left, color){ | |
var label = Ti.UI.createLabel({ | |
backgroundColor:color, | |
text:count, | |
borderColor:'#fff', | |
borderRadius:10, |
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 win = Ti.UI.createWindow(); | |
var start = new Date().getTime(); | |
var c = Titanium.Network.createHTTPClient({validatesSecureCertificate:false}); | |
c.ondatastream = function(){ | |
//start = new Date().getTime(); | |
}; | |
c.onload = function() | |
{ | |
Ti.API.info('IN ONLOAD '); |
OlderNewer