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({ | |
backgroundColor : '#fff' | |
}); | |
// Create a Button. | |
var ACATest = Ti.UI.createButton({ | |
title : 'ACATest', | |
color : "red", | |
height : Ti.UI.SIZE, | |
width : Ti.UI.SIZE, |
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({ | |
backgroundColor : '#fff' | |
}); | |
// Create a Button. | |
var ACATest = Ti.UI.createButton({ | |
title : 'ACATest', | |
color : "red", | |
height : Ti.UI.SIZE, | |
width : Ti.UI.SIZE, |
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({ | |
backgroundColor : '#fff' | |
}); | |
// Create a Button. | |
var login = Ti.UI.createButton({ | |
title : 'login', | |
color : "red", | |
height : Ti.UI.SIZE, | |
width : Ti.UI.SIZE, |
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 window = Ti.UI.createWindow({}); | |
var searchView = Titanium.UI.createSearchBar({ | |
barColor : '#000', | |
showCancel : true, | |
height : 43, | |
top : 20, | |
}); | |
var tbl_data = [{ |
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
Ti.UI.backgroundColor = 'white'; | |
var win = Ti.UI.createWindow({ | |
exitOnClose : true, | |
layout : 'vertical', | |
backgroundColor : 'red' | |
}); | |
var picker = Ti.UI.createPicker({ | |
top : 50, |
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
// | |
// PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE | |
// PICKED UP DURING THE APP BUILD FOR YOUR MODULE | |
// | |
// see the following webpage for instructions on the settings | |
// for this file: | |
// https://developer.apple.com/library/content/featuredarticles/XcodeConcepts/Concept-Build_Settings.html | |
// | |
// |
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
// Ti SDK 8.2.0.GA | |
// Device v6.0.1 HTC m8 eye | |
var win = Ti.UI.createWindow({ | |
backgroundColor : 'white' | |
}); | |
// Create a Label. | |
var aLabel = Ti.UI.createLabel({ | |
text : 'accuracy', |
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({ | |
backgroundColor : 'white' | |
}); | |
function getLocation() { | |
Titanium.Geolocation.getCurrentPosition(function(e) { | |
if (e.error) { | |
alert('Error: ' + e.error); | |
} else { | |
alert(e.coords); |
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({ | |
title : 'Pin Example', | |
backgroundColor : 'white' | |
}); | |
var view = Ti.UI.createView({ | |
backgroundColor : 'white', | |
layout : 'vertical', | |
top : 20 | |
}); |
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 : "title", | |
backgroundColor : '#fff' | |
}); | |
var Activity = require('android.app.Activity'); | |
activity = new Activity(Ti.Android.currentActivity); | |
// status bar height |