Community Questions & Answers

Adding Labels in a loop is very slow

I have a loop which adds a variable number of labels to a view in various positions. On the iPhone emulator this runs super fast, but is super slow on the actual iPhone. I'm reproducing native code that I'd previously written in appcelerator, and the...

How to open a TabGroup view

Hi, I need to open a new view when a statement is true, the view is TabGroup based, how does this works? I want to open home.xml : ~~~ <Alloy> <TabGroup> <Require src="profile"/> <Require...

Titanium Trouble positioning a view

I am going to place a view at touch position. This is my code. front_view.addEventListener('longpress', function(e) { tmp_item.text = table2.data[0].rows[index].title; tmp_item.width = 250; tmp_item.applyProperties({ left : e.x, top :...

83 views
asked 2 weeks ago by Wang Dan
last activity 2 weeks ago

Trouble shoing a view at touch point

I am going to show a view on the touch point. But the view appears away from touch position. One thing suspicious is that this is working properly on my android tablet but not on android phone. I think there must be a translation between touch position...

Search bar

I have created a menu bar using view.I have placed a search icon on the view.When I click on it, I want searchbar to appear and remain hidden otherwise.Can any one help me with it. Thanks in advance..

Adding child view FIRST in view hierarchy, how?

The add() method on views does this: ~~~ Adds a child to this view's hierarchy. The child view is added as the last child in this view's hierarchy. ~~~ If I want to add the child FIRST in the view's hierarchy, how do i do this the most clean way?

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

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