View toolbar
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 spacer = Math.round(Ti.Platform.displayCaps.platformWidth*0.25); | |
var width = spacer-4; | |
var height = 36; | |
// TAB BAR | |
var tabBar = Ti.UI.createView({ | |
width:Ti.Platform.displayCaps.platformWidth, | |
height:40, |
View info_titanium_tabs
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
Asta ai in app.js: | |
Trebuie sa deschizi un window temporar din care apoi sa apelezi homewindow. | |
var tabGroup = Titanium.UI.createTabGroup(); | |
var homeWindow; | |
rootWindow = Titanium.UI.createWindow( |
View app.js
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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
var isAndroid = false; | |
if (Ti.Platform.name === 'android') { | |
isAndroid = true; | |
} | |
// create tab group |
View database.js
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
/** | |
* Class name: database.js | |
* Author: Codeboxed | |
* URL: http://www.codeboxed.com | |
* Date: June 6, 2011 | |
* Platform: Titanium | |
*/ | |
var Database = function(dbPath, dbName, table, tableFields){ |
View plist-to-json.js
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
/** | |
* Class name: PlistToJson | |
* Author: Codeboxed | |
* URL: http://www.codeboxed.com | |
* Date: May 10, 2011 | |
* Platform: Titanium | |
*/ | |
var PlistToJson = function() { | |
/** |
View youtube_videos_example.js
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; | |
// Set the window orientation modes for the video to rotate with the device | |
win.orientationModes = [ Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, | |
Ti.UI.LANDSCAPE_RIGHT ]; | |
// Build the movie URL. 'fs' and 'autoplay' parameters are optional. | |
var movieId = "d0llSyfgwEE"; | |
var movieUrl = "http://www.youtube.com/embed/" + movieId+ "?fs=1&autoplay=1"; |
View call.js
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
/** | |
* Filename: Call.js | |
* Author: Codeboxed | |
* URL: http://www.codeboxed.com | |
* Date: March 26, 2011 | |
* Platform: Titanium | |
*/ | |
/** | |
* Call |
View index.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
<html> | |
<head></head> | |
<body style="background-color:#1c1c1c;margin:0"> | |
<div style="border-top:1px solid #404040"> | |
<div style="color:#fff;;padding:10px">Welcome to Titanium</div> | |
</div> | |
<script type="text/javascript"> | |
var eventName = 'randomEvent'; |
View Preferences.js
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
/** | |
* Class name: Preferences.js | |
* Author: Codeboxed | |
* URL: http://www.codeboxed.com | |
* Date: March 7, 2011 | |
* Platform: Titanium | |
*/ | |
var Preferences = function() { | |
// Private |
NewerOlder