Community Questions & Answers

Center align Image view inside a View

I'm trying to create a header banner in a screen with some color and to add an image to that banner horizontally centre aligned. I'm getting the image left aligned, Is there any option for aligning it to the center of the banner without using left, right...

ScrollView detect height/can be scrolled

I'm looking for a solution where I can hide certain elements in the `ScrollView` when they go out of bounds, that is when scrolling is enabled for instance. As soon as the height of the items grows bigger than the height of the scrollview, i should trigger...

Animate Veiw Height From 0

I'm having serious issues with what should be a very straight forward problem in Titanium Mobile 1.8.1. I have a view with height 0. I then wish to animate that view to open up and display the contents. If this was jQuery, I'd be able to use .slideDown(),...

Move view without animation

With this code I move a view from a point to another one animating it: ~~~ var m = Ti.UI.create2DMatrix(); m = m.translate(0, 175); var a = Ti.UI.createAnimation(); a.transform = m; a.duration = 300; myView.animate(a); ~~~ Now, I want to do a different...

how to get value of a picker

hi, im having trouble getting the value of a picker that is inside a scrollableview. i have this structure: scrollableview view1 textfields pickers view2 textfields pickers view3 textfields pickers view4 textfields pickers send...

Alloy Data Binding to instance

I'm trying to get data binding working with an existing instance. Right now I'm just hacking around but here's some code: play.js controller: ~~~ var args = arguments[0] || {}; var levels =...

button inside 2 views is not clickable

Hi, I've got some buttons which appear inside a view which is the child of another view. The button doesn't work (is not clickable), but when I add the button to the parent view it works fine. So seems like there is some issue with a button inside 2...

How to get rowData from custom TableViewRow?

hey guys, i've created a custom tableviewrow and the output is great, but not i want to get the information of my custom rowData, but i've no idea how to catch it. i tried several variants of using `e.rowData` but i always get no usable result. could...

Eventlistener on dynamic view's not working

hi, in my project am using a dynamic view's am not able to add eventlistener to each view... i have a horizontal view and i want to add dynamic views[using array] to that vertical view.. am able to do that but when i want to add event listener to that...

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...

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