Community Questions & Answers

Rounded image

Hi, I am using alloy framework and my titanium sdk version is 3.2.2.GA. I have taken imageview component as follow: ~~~ var imageView = Ti.UI.createImageView ({ image : path, width : "25%", id : "image1", shadow :...

How to parse JSON wrapped in a function.

I want to pull "productItems" out of the function, not sure how to get there when using jsonp. ~~~ callback({"page":0,"items":10,"total":85622,"query":"auto","productItems":{ ... }); ~~~

Cursor color in a textbox

Hi When I use textbox with a white backgroundColor, I cannot see my text cursor as it is white as well. This seems to be a problem with Android 4 and SDK 3.2.x, because lower versions did not give me this problem. Is there a way to change the color of the...

Hash sha512 in Titanium

Using SDK 3.1.3GA and Studio 3.1.3, is there a way to hash with sha512? I can see that there is md5, sha1, and sha256, but no 512. I have a server login that needs a different hashed password based on the length of the password string. I'd much rather hash...

Object disappears after animation

Hi, why imgView disappears after animation instead of remaining? ~~~ var win = Ti.UI.createWindow({ layout: 'vertical', navBarHidden: true, width: '100%', height: '100%', backgroundColor: '#fff', }); var view = Ti.UI.createView({ width:...

News Reader with Alloy

OS X Mavericks, SDK 3.2.2, Studio 3.2.x; dev platforms: iOS and Android. I am trying to customize the RSS News Reader sample done in Alloy framework. I made a change for the app to use a springboard from which the news table is displayed on clicking (See...

Add more rowData to TableView

I want a TableView that shows TableView A’s rowData as well as TableView B’s data. So basically append or “concatenate” them, I think. I tried this: ~~~ var dataFruits = [ {title:’Apple’, x:1148, y:1056}, {title:’Banana’, x:1218,...

Setting UI Label in another Window using Alloy

Hoping someone can help me. This seems like it should be simple but I'm having difficultly finding a way to do this. I am using Alloy and have created a another window with the following code within it: <Alloy> <Window...

PDF viewer for iPhone ?

Hi Everyone, I have a quick question. I have searched and found that it is possible to implement PDF viewer to view PDF files using Intent for Android in App. What I want to know is this is possbile for iPhone? If yes. How can I do it? Can you give some...

JSON.parse refuses to work

Hey folks, i have modified the example application for handling remote data, to work for my own JSON API. But it refuses to work. When i execute my code with the android emulator the screen remains white and this is the output of the Studio...

Hide keyboard in iOS

Hi, I am using alloy framework and my titanium sdk version 3.2.2. I am using ~~~ Ti.UI.Android.hideSoftKeyboard (); ~~~ for hide keyboard in android. But what to do for iOS to hide keyboard?

Alloy Window Animations

Hi All, i want to animate windows at the time of going from one screen to next screen. and one more doubt is with animations is the app will be slow? is there any animation example.please provide me. Thanks in Advance

Android Calendar Intent --> Help needed !

Hi, I am developing an app using Android Calendar Intent but facing problem to 'write' data into 'event_location'. I am able to write data into 'title' and 'description' but not 'event_location'. My code is as follow: ~~~ var content_title = 'some...

iOS 7 - Customize NavBar Title

Hi all, how can I customize navbar title in a webview? ~~~ winOffer = Titanium.UI.createWindow({ title: L('offer'), backgroundColor: '#fff' }); ~~~ I would like change the color title and the background color; how can I do?

Alloy: open and animate new window

Hi guys, I'm looking for a way to open a new controller/view when clicking on a button. For example in indexController -> I click a button -> secondWindow opens in an animated way Do I need to use the Animation class that comes with Titanium or...

1,763 views
asked 1 year ago by Joris
last activity 5 days ago

Alloy Views Navigation

Hi All, am new to Alloy.how we navigate views in alloy? i mean if we have 2 Screens,each screen have one button.if i clicked on button1 which is in screen1,then i want to go 2nd screen. each screen having its own control and views. please help me...

Is this an event propagation issue?

Hi, I have a simple window and a simple imageView attached to it. I added an event lister 'click' on window to play a little mp3 and I also added an event listener 'click' on imageView to play another little mp3 file. When I click on the imageView both...

metalAlloy

On a Mac OSX Mavericks box, developing for android and iOS, running SDK 3.2.2 and Studio 3.2.x I am having a ton of trouble laying out my UI in Alloy. What works for some layout when repeated in another part it seems not to work. Please see the...

Getting children views inside parent one.

Hi! The case is to get child view by id or another identifier. First and most known solution is make it like the following: ~~~ function updateMessage (row, data) { row.children[1].children[2].children[1].setImage(data.url); // work if we know the...

No App Explorer?

I create a new Android or Desktop project in Titanium, but there is no App Explorer or anything I can see. There is only a screen with Dashboard, Edit, and Test and Package at the top. I'm running Windows 7 64 bit, and for the life of me I have no idea...

button color not changing in nav bar

I am adding a button to the right of the nav bar and setting the color as blue. But it seems to be black. Any idea why ? ~~~ var self = Ti.UI.createWindow({ barColor : '#000000', backgroundColor : 'white' }); var edit_button =...

Alloy MVC - change database for model at runtime?

Hi folks What I would like to be able to do is use the Alloy MVC stuff - but be able to switch the database used for a given model as and when I need to. So - using an example with books and libraries... The alloy.js file: ~~~ Ti.App.currentDB =...

App Crashing Windows

Hi Community, After a recent update from a few weeks back, I've been using Titanium Studio and randomly without any warning my screen will go a strange color and the CPU fan goes crazy. It's only happening when Titanium Studio is open and has happened 3...

Welcome Message

What code can I use to create an alert for the first time a user opens my app that displays a message. Like a welcome message

Showing 1-50 of 14,465 1 2 3 4 5 6290