Community Questions & Answers

Square image

I have square image "buttonLevelW.png". I need put this image to ImageView or View. This View has width "33.33%" . What do I need to set height? This my code: ~~~ function createRow(i) { var row = Ti.UI.createView({ borderColor:...

Showing a view in popup

Hi All, I am developing an ios app using titanium, i want to show a view as a popup in that i have to show picker with values. i want to get the selected picker value from popup view to previous window i am getting the value by using the fire...

Evenly spacing UI elements

I'm starting out with Titanium Mobile and began building a prototype of the UI I wanted. I began with a window that had four buttons stacked vertically and centered horizontally. I wanted the vertical spacing between the buttons and the top/bottom of the...

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

Dynamic view is not showing

Hi, I am creating one mobile module using titanium studio in which i used one 3rd party jar,by using that jar i am calling custom view that will show in bottom of the screen.When i am calling that view in alloy.js file of my mobile application then that...

Dyanamic view not called

Hi, I am creating one mobile module using titanium studio in which i used one 3rd party jar,by using that jar i am calling custom view that will show in bottom of the screen.When i am calling that view in alloy.js file of my mobile application then that...

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

145 views
asked 3 months ago by Wang Dan
last activity 3 months 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...

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