titanium

appjs - compile into single executable?

ⅰ亾dé卋堺 提交于 2019-12-20 10:25:24
问题 I've spent all night trying different tools for building cross platform desktop apps via html5 and so far appjs seems to be perfect. I've only been playing around with the windows executable-based demo project but I'm wondering if there is any guide or tutorial on how to convert the project to cross platform executables (single files) instead of the appjs loader executable with all the sources in a subfolder. I've also tried adobe air however css animations is beyond poor, slow/choppy (might

Appcelerator vs Android SDK

时光怂恿深爱的人放手 提交于 2019-12-20 08:59:44
问题 I have been looking at appcelerator it seems pretty fine! Without a doubt, one of the advantages of appcelerator is its support for multi-platform. I am interested in building an android app and maybe a iphone app later on. So it is not crucial to support multiple platforms at the moment. If you disregard supporting multiple platforms and just focus on android development. Is appcelerator still advantageous? Does it lack any features of "Android sdk"? (When I say "Andorid sdk" I mean

How to load another js file on a button click in titanium

旧街凉风 提交于 2019-12-20 06:15:09
问题 I have App.js (function() { Window = require('ui/tablet/ApplicationWindow'); } new Window().open(); })(); From there ApplicationWindow.js is loaded. In ApplicationWindow.js function ApplicationWindow() { //load component dependencies var FirstView = require('ui/common/FirstView'); //create component instance var self = Ti.UI.createWindow({ backgroundColor:'#ffffff' }); var win2 = Titanium.UI.createWindow({ backgroundColor: 'red', title: 'Red Window' }); //construct UI var firstView = new

Is a TiTouchImageView working in an alloy project? [UPDATE]

送分小仙女□ 提交于 2019-12-20 06:12:57
问题 I am currently developing a titanium app for android and iOs including an imageView which should be scrollable and scalable (via a slider). I already get this to work on iOs but on Android it is really hard to achieve the scrolling behaviour. I decided to use the TiTouchImageView module but the documentation only shows how to use it in a non-Alloy project. My current code looks like this: if (Ti.Platform.osname == "android") { var TiTouchImageView = require('org.iotashan.TiTouchImageView');

appcelerator titanium - hide navigation bar android

雨燕双飞 提交于 2019-12-20 05:54:31
问题 Is it possible to hide permanently the Android bottom navigation in Appcelerator Titanium? Many questions about this subject but no fine solutions. <fullscreen> true </fullscreen> in tiapp doesn't work with titanium 5.5.1 $.index.addEventListener('open', function(e) { $.index.activity.actionBar.hide();}); doesn't work. 'Window':{navBarHidden:true,tabBarHidden:true,fullscreen:true} in tss doesn't work etc. Thank you. 回答1: This method always worked for me, set the app to fullscreen without nav

appcelerator titanium - hide navigation bar android

*爱你&永不变心* 提交于 2019-12-20 05:54:15
问题 Is it possible to hide permanently the Android bottom navigation in Appcelerator Titanium? Many questions about this subject but no fine solutions. <fullscreen> true </fullscreen> in tiapp doesn't work with titanium 5.5.1 $.index.addEventListener('open', function(e) { $.index.activity.actionBar.hide();}); doesn't work. 'Window':{navBarHidden:true,tabBarHidden:true,fullscreen:true} in tss doesn't work etc. Thank you. 回答1: This method always worked for me, set the app to fullscreen without nav

Titanium ImageView wont display images?

本秂侑毒 提交于 2019-12-20 05:38:09
问题 I created an image directory in my projects in the UI folder to place my images. So the full path is currently Resources/UI/Images. When i create an image view it wont display the images. I tried different options, even a web image but nothing works? var self = Ti.UI.createView({ backgroundColor:'white' }); var imgv = Titanium.UI.createImageView({url:"http://upload.wikimedia.org/wikipedia/commons/thumb/1/1a/Volkswagen_Logo.png/600px-Volkswagen_Logo.png"}); self.add(imgv); var imgv = Titanium

What to do about “Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.”

北战南征 提交于 2019-12-19 17:13:09
问题 I'm writing an iPhone app using Appcelerator Titanium Mobile. I am hiding and showing the tab group based on what window has focus. dashWin.addEventListener("focus",function(e) { if (dashWin.tabGroupVisible == true) { dashWin.tabGroupVisible=false; tabGroup.animate({bottom:-50,duration:500}); } }); The code above hides the tab group when dashWin receives a focus event. However, I see this message in the Titanium console when the event fires while running in the iPhone simulator: Finishing up

Titanium - animation is v. v. choppy

一笑奈何 提交于 2019-12-19 11:27:23
问题 So i have an image that i want to drop down the page. Should the user click a button, the image will stop said dropping down the page. I've used the eventListener 'complete' style to execute this... and it works, in a fashion. The problem is that the dropping down is choppy ~ irritatingly so. Is there a more efficient way for titanium to do some form of simple animation? Here is a code slice: ballAnimation = Ti.UI.createAnimation({ top: ballDown.top + 0.01*heightOfScreen, duration:

How do you force the absolute path for node modules?

試著忘記壹切 提交于 2019-12-19 09:07:30
问题 I have a Titanium project which uses the CommonJS module style. However the code uses absolute paths so that when it builds the absolute path is sandboxed to the application directory. var foo = require("/lib/module"); I want to run some tests on the command line and have jasmine-node working. However when a test executes a module the module will have the above absolute paths in their require statements. Is there a way to isolate (maybe chroot) node to resolve absolute require paths to a