Skip to content

Instantly share code, notes, and snippets.

Codeboxed codeboxed

Block or report user

Report or block codeboxed

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
codeboxed / database.js
Created Jun 6, 2011
Titanium Mobile Database Class
View database.js
* Class name: database.js
* Author: Codeboxed
* URL:
* Date: June 6, 2011
* Platform: Titanium
var Database = function(dbPath, dbName, table, tableFields){
codeboxed / app.js
Created Jul 1, 2011
Implement More tab on Android
View app.js
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
var isAndroid = false;
if ( === 'android') {
isAndroid = true;
// create tab group
View info_titanium_tabs
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 toolbar
var spacer = Math.round(Ti.Platform.displayCaps.platformWidth*0.25);
var width = spacer-4;
var height = 36;
var tabBar = Ti.UI.createView({
View android_menu
if (isAndroid) {
var myLocation = null;
var centerEdinburgh = null;
var sat = null;
var std = null;
var menuClickHandlers = function() {
myLocation.addEventListener('click', function() {
You can’t perform that action at this time.