Community Questions & Answers

How to deal with white space in Alloy

Take the following code snippet: <View id='container'> <View id='child' width=100 height=100/> <View id='child1' width=100 height=100/> <View id='child2' width=100 height=100 /> <View id='child3'width=100 height=100...

Add window to a view - 3.2.2

Hi, I am trying to add a view to an existing window. But when i to do this, the app crashes with 'NSRangeException. - [__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0] This worked on 2.x SDK. but now i am using 3.2.2. What is the correct...

Swipe gesture won't swipe container off

// this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ title : 'Tab 1', ...

Snap View Mode for iOS

Titanium SDK 3.2.0 iOS 7 Hello all I'm trying to make a snapview mode like snapchat video conference. For those who don't know what it looks like, I explain. In fact, you can have a snap only when you let your thumb (or any finger) on the screen. I...

webView

I have some strange bug in the Titanium... I have a window, I added a webview to the window. Now,when I close the window & then coming back to the window the webview is gone

navigation pages html in webview

bonjour j'ai un problème avec webview je veux intégrer mon site web dans un webview mais webview affiche just page index et les autre pages ne sont pas afficher je veux savoir pouquoi cette erreur

web view html navigation

hello I have a problem with webview I want to incorporate my website but in a webview webview just displays index page and other pages are not displaying I want to know this error please

how to build a hashtag picker view?

Hey everyone, I am trying to build an application using titanium that part of its functionalities is being able to search for hashtags entered by other users of the application. I have seen other applications on android and ios(EyeEm for example) where...

Data binding to nested views

I think this is best explained using an example. Say I want to display a list of movies with actors below each move. eg: ~~~ Movie A - Actor 1 - Actor 2 Movie B - Actor 4 - Actor 5 - etc. ~~~ JSON file looks like: ~~~ { movies: [ { movie_name:...

add Ti.IU.View.

i have a View and i set layout : 'vertical'. I have 10 labels. When i add label1-9 to View so it order from label1 to label 9 (top to bottom). I want to add label10 to top View so it order follow label10->label1...->label9 (top to bottom). How i can...

How to show camera inside the View

I am developing an app for Android (and in future for iOS) on Windows 7 with Titanium 3.3.0.GA. I want to make camera container which would show view from camera and then user by pressing a button could make a photo at right time. Is it possible to put...

Add Ti.Media.showCamera() into created view

I've added a square view on my window and I would like to be able to show camera image in the view. ~~~ var containerView = Ti.UI.createView({ height: 150, width: 150, backgroundColor: "blue", }); win.add(containerView) ~~~ How can I...

Avoid creating same views for each window

Hello, I'm building my first app here for android. Since my app requires a number of views = controllers i would like to know if there is some kind of a way to "include" stuff. I'm playing on 3.X so i read that include is deprecated. To give...

tabs do not appear in the TabGroup

Hello, I am trying to add tabs to my titanium app. I am running 3.2.3 GA with iPhone iOS 7.1 target. Somehow, no tabs appear in the bar, as if the TabGroup was empty. I tried to add TabGroup and display it as is. Neither seems to make difference. Please...

Drag view inside scrollView

Hello, I'm kinda new to titanium so I don't know how to do the following.. I want to create a vertical scrollView with set of views, for every view I want to drag it horizontally If I dragged it to left, then the view will be deleted, and replaced by...

Out of Memory - Titanium Alloy

Is it a bad idea to use some static variables or variables such as `var test = Alloy.createController('index');` on different Alloy controller file that contains one to many that really consumes too much memory? If yes, what's is the best practice to...

creation of menu with Has child

hello friends, i want to create a menu on android app while clicking on menu it should show a list of item some of the row should have haschild property means by clicking in that row it should also show a small menu table.. i am unable to find a way to do...

Add view under tabGroup

Hello, I am developing an android application and i want to add a view under a tabGroup. When the user change tab, the view must still exist under the tabGroup. How can i achieve this? I have tried this: ~~~ <Alloy> <TabGroup...

Fixed menu with activities below

I'm looking for a solution for the following problem: (android+ios solution preferred) My current setup contains windows in which i consistently require a partial view which is the header. This means that every window creates a new header and if i close...

View for a particular time

hello, i want to add a new view{V} in a window {W} and i did it using {W.add(V)} but my originally requirement is that this view {V} should be added for sometime say(for 5 sec), is it possible to do that.if not then please tell me other way to do it.

Showing 1-50 of 1,303 1 2 3 4 5 627