Community Questions & Answers

Alloy view xml attribute : ns

I have read "ns" in the example of Alloy mapping. What does it mean? here is the code. ("ns" is in line 2.) ~~~ <Alloy> <View ns="Ti.Map" id="map" mapType="Ti.Map.STANDARD_TYPE"> ...

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

toImage no working

I have tried the function toImage on android it doesn't work when I store the ~~~ var image = Ti.UI.createImageView({image: "path.png"}); var img = image.ToImage(); var toDisplay = Ti.UI.createImageView({image:...

Android view backgroundImage not displaying

Is there anything special I need to do to show Android background images? my code, this is no brainer stuff, but isnt working for some reason, i even went to using the Ti.Filesystem ~~~ var tableView =...

Alloy confusion over Windows and Views

Hello, I have just started using Titanium Studio (3.1.0.201304151600). I'm looking to build a mobile app for android (4.2.2) using alloy. Running windows 7. I'm a bit confused over the views and windows on the xml files. I would like my app to have...

Issues animating just created Views.

Hello! I'm trying to do a transition between two views. I want to animate both views, I have no issues when trying to animate the current existing view. But when I try to animate the one I just created programmatically. It doesn't work, it just skip the...

How can I draw a line?

I find it very hard to believe that there's no simple way to draw a line using Appcelerator. It seems very common among iOS apps (I'm making an iPad app). I want the user to be able to touchmove over a view and have a line appear where they have drawn. My...

Picker view animation failed

Hi guys, I've a window wit two views, and I call both from each other with a transition (animationstyle.curlap). On the first view there is a picker view with an animation (slide in e slide out) that is fired by a button. if I don't use a transition...

Change one View from another View in Alloy

Hi everybody! I am in a bit of a hurdle understanding some fundamentals of how Views work I guess. To get my app more organized I tried to make use of <Require type="view" src="foo"/> in my index.xml. Now my index.xml looks like...

Shadow outside the window

Hello! I have an app, which provides Facebook-like sliding menu beneath the windows. When the user clicks the button, the frontmost window slides right, and reveals the menu. While it is slided, it had a shadow (a transparent png in a view on negative...

width problem on android

Hi, I'm developing for i phone and android using sdk 3.0. I have a problem with the width of some view: i created a kind of custom nav bar with 4 views here is the code : ~~~ var topContainer = Ti.UI.createView({ layout : 'horizontal', top :...

Drag and drop (child views)

Hello everyone, First of all I know that there are a lot of topics about this, but I've been searching for 2 full days but nothing seems to work out for me. Here's the situation. I created a window with a view, which is my Grid. By pressing some buttons I...

view.toImage() is not working in android

Application Type : Mobile Titanium SDK : 3.0.0,3.0.2,3.1.0 Hi I want to capture a view. Means my view have some subviews and they have different images and I want to capture the whole view so I can get the one image which have all subview's images. I am...

View show/display event

Hi, I'm trying to load data only when a view is shown vs loading the data in advance. The focus event doesn't seem to work for me. Is there something I am missing? Thanks

lenght view

Titanium I can ask if there is more than one element? .... I have a view that is added on a window, and this view is in a function that has a setInterval (), but I need to know how often adds that element view a window. my code ~~~ var protector =...

Showing 1-50 of 934 1 2 3 4 5 619