Community Questions & Answers

ViewShadowOffset example

Does anyone have an example of using viewShadowOffset? I want to create a drop shadow 3px on the right and bottom. The docs are a bit light in actual explanation and no matter what I set, viewShadowOffset seems to do nothing. I can control the with of the...

how to get the position of a UI element on the screen

hey i have a problem that i want to arrange my element in order to each other but i can't get the items properties like left,top and other using getleft() and getwidth() because in many cases this return Nan so what i did in this case is to add...

Swipe tile touch move up/down

Thanks Harish for your help. it working. And if we want edit like: 1. Row first it hieght 200 and other 100. 2. When user move up it will do animate on row 1st to top and animate the same time on row 2nd and other. but on row 2nd it animate move to the...

Blurring Effect on Views

I know this question was asked many times before, but I just want to get an update on creating a real-time blur effect of a view. I found several third-party software that can create the blur effect, but they have unclear Copyright legislation stated on...

Android.openPreferences fullscreen?

Hi all, is it possible t open the Android Preferences screen in "fullscreen" mode? My App is running in full screen, but when entering the Preferences, status bar is shown again :-( Here the EventListener to open the...

Use animation to hide and show view

Hello everybody, I try to use animate to hide and show view. the problem is that I can't resize the view to his original height. this is my code: ~~~ '$.branchDetailsView.addEventListener('click', function(e) { if (branchDetailsOpen == false)...

Add view to other view and be the first child

Hello everybody, I have a view that contains views. I want that when i add new view it will be the first child of the contain view(index 0) but evertything that i tried to do doesn't work. this is the last attempt: ~~~ //move object to array, insert the...

scaling a view from the center

Hi, I want to use the view's animate method to scale a view contained inside a scrollview with vertical layout. Problem is I need to scale both the top and the bottom of the view, starting from the view's center. I don't know exactly why but it looks...

Remove TiUIProxy from memory

Greetings I am handle the app memory; I do remove from memory every element created, by removing it and setting to null; for example a TiUIView on xcode it goes to transient; but the TiUIViewProxy does not, it still continue in living. How do I do to...

TableView iOS drag

Thanks I am using a tableview, and I do the scroll vertically; but on iOS when I scroll until the last row, and continue scrolling, the tableview appears like it has been drag, even the tableview up so much that is possible to see the view that contains...

Alloy - page wont open

Code: if (response.logged == true) { var arg = { uid:$.username.value, paired:response.paired }; //alert("Username: " + response.name + "Paired: " + response.pair); var window =...

insertAt documentation?

Anyone have any example of how to use insertAt? I see it available in the titanium sdk source (IOS [here](https://github.com/appcelerator/titanium_mobile/blob/a417bc90489b89bbae7c65e561530ec487ba3b0d/iphone/Classes/TiViewProxy.m#L223)), and (Android...

Scroll label text iOS

Greetings I am using a label within a scrollview; the text has 3 or 4 paragraphs. On android the text is displayed vertically and is able to scroll; but on iOS the text is displayed horizontally; and shows a "..." indicating there are more text...

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

Modal Window transparency

Hi I'm creating a modal Window, it works fine on Android (the Window has a dark transparent color); But on iOS the modal Windowhas a solid white color. ~~~ var searchView = Ti.UI.createWindow({ theme : "Theme.NoActionBar", modal :...

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(),...

Showing 1-50 of 1,358 1 2 3 4 5 628