This file contains hidden or 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
(function() { | |
var win = Ti.UI.createWindow(); | |
var section1 = Ti.UI.createTableViewSection({ | |
headerTitle:'Header 1' | |
}); | |
for (var i=0; i < 4; i++) { | |
section1.add(Ti.UI.createTableViewRow({ | |
title:'Row '+i | |
})); | |
} |
This file contains hidden or 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: '#0f0', | |
navBarHidden: true | |
}); | |
var table = Ti.UI.createTableView({ | |
backgroundColor: '#f00' | |
}); | |
var rows = []; |
This file contains hidden or 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
// ZenTi makes doing things like this: http://developer.appcelerator.com/question/134097/commonjs-methodology-how-to-access-inner-object-functions | |
// easy and intuitive task | |
// skipped "require" part ... | |
function TableViews(){ | |
} | |
extend(TableViews, TableView); |
This file contains hidden or 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
"use strict"; | |
var Ad = require('library/adriatic'); | |
var Window = Ad.require('window', 'ui'); | |
var View = Ad.require('view', 'ui'); | |
var Button = Ad.require('button', 'ui'); | |
var TableView = Ad.require('table_view', 'ui'); | |
var TableViewRow = Ad.require('table_view_row', 'ui'); |
This file contains hidden or 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 SDK version: 2.0.0 (03/11/12 21:47 e679d51), v8, Android 3.1 | |
//1.8 works fine (except WTF part) | |
var win = Ti.UI.createWindow({ | |
width: '100%', | |
backgroundColor: '#fc3', | |
height: '100%' | |
}); | |
var view = Ti.UI.createView({ |
This file contains hidden or 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({ | |
navBarHidden: true, | |
backgroundColor: '#000' | |
}); | |
var button = Ti.UI.createButton({ | |
title: 'Click me!' | |
}); | |
var actInd = Ti.UI.createActivityIndicator({ |
This file contains hidden or 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
03-06 11:17:34.670: W/dalvikvm(1343): JNI: DeleteGlobalRef(0xdebd6b8f) failed to find entry (valid=0) | |
03-06 11:17:35.060: W/dalvikvm(1343): JNI: DeleteGlobalRef(0xdebd6b8f) failed to find entry (valid=0) | |
03-06 11:17:35.060: E/TiBaseActivity(1343): (main) [15233,50083] Layout cleanup. | |
03-06 11:17:35.070: E/WindowManager(1343): Activity org.appcelerator.titanium.TiModalActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40b853d0 that was originally added here | |
03-06 11:17:35.070: E/WindowManager(1343): android.view.WindowLeaked: Activity org.appcelerator.titanium.TiModalActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40b853d0 that was originally added here | |
03-06 11:17:35.070: E/WindowManager(1343): at android.view.ViewRoot.<init>(ViewRoot.java:286) | |
03-06 11:17:35.070: E/WindowManager(1343): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:152) | |
03-06 11:17:35.070: E/WindowManager(1343): at android.view.WindowManagerImpl.addView(Win |
This file contains hidden or 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
//tested with 1.8.1 | |
//it seems that problem exists when button's dimension values are defined using percentages | |
var win = Ti.UI.createWindow({ | |
backgroundColor: '#333' | |
}); | |
var view = Ti.UI.createView({ | |
backgroundColor: '#93f', | |
height: '20%', |
This file contains hidden or 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
!SESSION 2012-02-28 17:11:12.222 ----------------------------------------------- | |
eclipse.buildId=unknown | |
java.version=1.6.0_24 | |
java.vendor=Sun Microsystems Inc. | |
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=hr_HR | |
Command-line arguments: -os win32 -ws win32 -arch x86 | |
!ENTRY org.eclipse.ui 4 4 2012-02-28 17:11:25.690 | |
!MESSAGE Unable to find Action Set: com.aptana.editor.php.presentation |
This file contains hidden or 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 Studio, build: 1.0.8.201201262211 | |
(c) Copyright 2011 by Appcelerator, Inc. All rights reserved. | |
Build: jenkins-titanium-rcp-master-136 (origin/master) | |
Date: 26 January 2012, 22:14:21 | |
Host OS: Windows XP | |
OS Arch: x86 | |
JRE Version: 1.6.0_24 |