titanium

Disable the default actionbar on titanium sdk 3.5.0GA

百般思念 提交于 2019-12-11 19:33:11
问题 I updated my Titanium sdk to 3.5.0GA, but there exits a default action bar on every window on Android. Can anyone please tell me how to permanently disable this default action bar? Thanks in advance. 回答1: Define the settings for your custom theme, for example, your theme at /platform/android/res/values/customtheme.xml like < ?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.NoActionBar" parent="@style/Theme.AppCompat"> <item name="windowActionBar">false</item> <item name=

Titanium JavaScript: How to pass data/values from one window to another window

孤者浪人 提交于 2019-12-11 19:22:43
问题 In objective c we can pass data between two classes very easily by nextClassname.recievedVariable = passedVariable; i tried same with titanium, but failed I tried as follows in Second Class $.table.addEventListener('click', function(e) { var selected = e.row; alert(e.row.title); var TodayStatus = Titanium.UI.createWindow({ url:'TodayStatus.js' }); TodayStatus.seletedProj = e.row.title; // var TodayStatus = new Alloy.createController("TodayStatus"); TodayStatus.getView().open(); }); in the

Tiianium studio 3.2.0 Project intallation issue on Device

拈花ヽ惹草 提交于 2019-12-11 19:11:15
问题 I am using titanium studio or sdk 3.2.0, my app is running on ios 6 and also 7 devices, but not running on ios 5 device. How can i fix it? And also i want to know how to set deployment target and mini sdk version in my project? 回答1: Note that support for iOS 5.x and earlier was removed in Release 3.2.0. You can find this document and other useful information in the appcelerator migration guide. In order to support iOS5, you would have to compile with an older Version of the SDK, you can find

Update data in matrix of cells

倾然丶 夕夏残阳落幕 提交于 2019-12-11 18:53:52
问题 This code implements a 60 cell spreadsheet, 6x10 rows,columns. At the end of each row are two labels, one for row total and for running total. The main issue here is how to update the row and running total labels when the calc button is pressed. I would also like to move the button from the bottom of the scrollview to the bottom of the window where it's always visible. Another view for buttons at the bottom? Ti.include("toast.js"); // 3rd-party code; displays notifications var i=0; var r=0;

Issue with label alignment in titanium alloy

我与影子孤独终老i 提交于 2019-12-11 18:45:49
问题 I have created custom check boxes in my application. I have no issue with check box and it's label if the label text is small. If the label text is large (more than a one line) the alignment is not showing properly. Look at the above screenshot: the first option label text is "Please select the 2 primary reasons rating the program testing the program" and second option label text is "Question2". If the text in first label is small that is which fits in one line then the UI looks good. But If

Ti.App.fireEvent not working; error Uncaught TypeError: Cannot read property 'App' of undefined

大兔子大兔子 提交于 2019-12-11 18:08:49
问题 I have a simple Titanium app which opens a webview, and loads a URL. I want the links to open in the default browser, not the app. I have some jQuery code which adds a click event to all links in the page. <script> jQuery('a').click(function() { console.log("Handler for .click() called for URL: " + this.href); Ti.App.fireEvent('ynOpenURL', {url: this.href }); }); In the app.js file I have: var win = Ti.UI.createWindow(); var mywebview = Ti.UI.createWebView({ url : 'http://xxxx.xxxxx.com/',

Titanium Appcelerator - couldn't find module ti.storekit

时光总嘲笑我的痴心妄想 提交于 2019-12-11 18:07:40
问题 I'm getting this error running my app on a simulator or device: [ERROR] : Script Error Couldn't find module: ti.storekit . The device shows a red screen with the same error. I have unzipped the module into ~/Library/Application Support/Titanium/modules/iphone/. In that directory I now have ti.storekit/3.0.0/. I have this in my tiapp.xml: <module platform="iphone" version="3.0.0">ti.storekit</module> I've trolled google, this site, and the appcelerator forum and found no solutions that work

Titanium: Image -> “auto”

微笑、不失礼 提交于 2019-12-11 17:48:01
问题 Let's say I have an image called hello.png with dimensions 200x100 . I create a button using that hello.png like this: var button = Titanium.UI.createButton({ bottom : 50, backgroundImage : "images/hello.png", width:100, height:"auto"; }); window.add(button); What would be the appearance of the height of the button on the device? Would it be 200 pixels or would it be much less than 200 (maybe say 50)? Based on what I've found on google, the button should be 200 pixels. But when I compile the

Attempting to write in a readonly database Titanium Android

会有一股神秘感。 提交于 2019-12-11 15:25:33
问题 I have opened the db file from my sdcard. And i need to update in that file itself when changes occurs. if (Ti.Platform.name === 'android' && Ti.Filesystem.isExternalStoragePresent()) { var db2 = Ti.Database.open(Ti.Filesystem.externalStorageDirectory + 'path' + Ti.Filesystem.separator + 'to' + Ti.Filesystem.separator + 'mydb2Installed'); } When i tried to update ., it says "ReadOnly file cannot be updated" I want to make this as a writable database file. In native android i have a solution,

Setting Minimum iOS Version number in Titanium Studio

冷暖自知 提交于 2019-12-11 14:54:07
问题 How can we set minimum iOS version in Appcelerator Titanium Studio from default 4.3 ? 回答1: Add following setting to the tiapp.xml . Make sure to change 6.1 to whatever minimum iOS version you want to build your app for. <ios> <min-ios-ver>6.1</min-ios-ver> </ios> builder.py looks at this value to decide what minimum version to build the project with. You can find builder.py at following location: ~/Library/Application Support/Titanium/mobilesdk/osx/<Titanium-SDK-Version>/iphone/builder.py Don