Community Questions & Answers

Multiple views with drawer menu

I am using drawer menu for my application. I have created one window with multiple views. On click of any menu item i want to display the respective view (i have set the visible property of all views except the active one to false) The issue is when i...

window doesn't add view

Hi everyone, i have this strange problem which maybe is very simple: in my application i have 2 windows, a button andone view. At the beginning the view is added to the first window. I'd like that pressing the button the second window adds the view and...

remove view

Hey guys , I am new to titanium.I am facing issue in closing view after window switch. ~~ function createAPIExampleWindow(){ var win = Ti.UI.createWindow({ backgroundColor:'#222' }); var data = [ {title:...

[iOS] The xml load faster than tss

Hi, I create a View and style by tss file. But when this View is opening, the style was not apply immediately to the View. It looks like the View flash about 100ms with ugly positions, then the tss loaded and become beautiful. Please help me how to fix it....

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

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