Community Questions & Answers
MapView Animation TypeError
Hi, i try to animate the MapView on Android Emulator. But i get the error "Uncaught TypeError: Property 'animate' of object [object view] is not a function" Im a little bit confused, because in the API-Description there is a property with the...
how to animate a object outside the screen?
I'm build to iPhone and I need to make a little visual animations... I want to move a label outside the screen when I touch a button... I'm trying to do this: ~~~ label2.animate({ duration: 300, right: -300 }) ~~~ but don't seems to work... someone...
How to apply animate to Modules.Map (i.e. Ti.Map)
Using the code from https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/master_detail I added some code to master.xml and master.js, respectively. Now it should be something like this: master.xml ~~~ <Alloy> <Window...
Animate thumbImage of slider
Is there a way to animate the thumbImage of a slider such as in ~~~ var slider = Titanium.UI.createSlider({ min : 0, max : 10, value: 5, top:183, backgroundImage: Ti.Filesystem.resourcesDirectory +...
Animate causing app to crash
For some reason, this section of code is causing my app to crash, which is triggered when the user swipes the screen to the left: $.toolbar.animate({ right: 0, duration: 500 }); $.mainMenu.animate({ left: -100, duration:...
Alloy Views
I am trying to make a simple slideover menu with a menu button to call over the menu View in Alloy. I have tried to get the menu view to animate with no success. I can get it to work if I include all my code within one controller, but then that defeats...
View animation not working well with AddEventListener?
I am a newbie to appcelerator, By running this code, i am expecting it will keep switching the view, image1 -> image2 -> image1 -> image2 -> .... But when run it on ipad simulator, it only switch from image1-> image2 -> image1 then no...
Performing an animation according to the axis Y
Hello everyone, I want to perform an animation in which my object (a view) will just scale, according to the axis y, I mean that the width remain the same except the height.... I tired this code but in vain: ~~~ var win =...
opening a window with a view above the window, using negative top values (works in ios, can't find a way in android).
Question: ======= I am making something similar to the nightshade or android pulldown, or whatever they are respectively called. I got it working perfectly on ios, and nearly perfectly on android. The problem is, getting the window to start in the upper...
passing attributes in the createanimation method
Hello everyone, I am using this animation code into my Titanium application: ~~~ var startupAnimation2 = Titanium.UI.createAnimation({ opacity: 0, duration: 2000, delay: 0, ...
Geolocalisation issues
Hello everybody, I am trying to run this code to manipulate the geolocalisation: ~~~ var myannotation =...
How to get view to not clip elements inside view
I have a label of letters stacked vertically and a viewport that only shows one letter at a time. I then animate that letter label to start scrolling (think slot machine) but the problem is only the letter that is initially in the viewport (A) is shown,...
Tweet engine for handeling animates
Is there anything like "tweet engine "to handel animates in Titanium? Plz let me know if u know or hv any idea. Regards
Opening a window with an animation animates after the window is opened
When I open a window with an animation object in it the window opens but the animation is fired when the window is opened but I want the animation to happen when it is openeing and not after the window is already visible. I used an example from the...
"Masking" or hiding overflow from a view?
Hi I'm trying to create a photo gallery that slides between images, to do this I was hoping I could have an internal view/label that hides content that doesn't fit (i.e. the width of the view is 200, but the actual width of the content inside is 300). I...
Why this animation code produces an error?
Hi all, I'm trying to execute an animation when the load window event is finished but the application closes unexpectedly without giving any error feedback from the try-catch block. This error affects titanium version 2.1.3, 2.1.4 (not tested with v3) but...
Andriod Animation problem
Hi Titaniums .. i use the example of animation to move box from point to point in my andriod application BUT the box move in wrong direction and after end the animate box back to right position that should move to in first place ..!!!! any idea...
Animation causes search box on a table view to appear
Weird issue I'm having, I'm animating the window to the left (250) to show another window behind it. Whilst the animation is occurring, the search field appears and disappears when the animation is complete. Is this something I will have to live with or...
Animate container of views
Hi, I have a view that contains three other views. Is there any way to animate the container with all its content OR should I animate any single view contained inside the container? I'm doing the last thing because I thought that by animating the container...
How to Loop setTimeout's on a set of images
Hi I am working on the below script to fade out a selection of 4 images one by one every 4 seconds until it gets to the last image and stops. It works although it seems a little ugly and i'm sure it could be done with some sort of loop and array to store...
When animating a window, its children views move back to starting positions, why?
I have 2 windows that I can move between. They slide left and right to get from one to the next. In windowB, I have some views that the user can drag around (game pieces). When the user clicks back to windowA and windowB slides out of view, the moved game...
Animate with percentage values
I'm trying to move a view 100% to the left, however when I use a percentage it seems to only move it 100 pixels instead. For example ~~~ var slideNext = Titanium.UI.createAnimation({ left: '-100%', duration : 500 }); ~~~ The view I'm moving has a width...
Animation Examples?
Hi All, I've seen a few code snippets referring to "Animate". I was wondering if there is a place where I can see a view examples of the style of animations that people have successfully achieved using Appcelerator? Maybe a youtube clip...
Animate multiple times
Hi all, I have two views that I want to animate multiple time. From left to right. This is my code inside a interval: ~~~ if (counter % 5 == 0) { if (i == 0) { alert('LEFT'); x.animate({ left : 5, duration :...
View animation
I have two views and on click of first view I have changed the position of those view using animate property. Here is my sample code given below. ~~~ var win = currentWindow; var view1 = Ti.UI.createView({ width:100, height:20, left :...
Uncaught Error: Invalid int: "10dp"
I keep getting this error, on every single .animate command that I execute on android, but if I use dps like that to create views it's ok and work as it should be. Only happens on ANDROID. any thoughts on...
Android: Animating Windows
Hello everyone! So, I've read the Q&A and searched google and I'm coming up with mixed reviews on if it's possible to animate a window on Android. I'd like to see if we can get a definitive answer on this. From my conclusion (using the latest SDK,...
problem with set animation to a secondary window
My situation Application type : ~~~ mobile Titanium SDK : 2.1.1 Platform & version : iOS 5.1 Device : iOS simulator Host Operating System : mountain lion Titanium Studio : 2.1.1.201207271312 ~~~ Hi ! My problem lies in failing to set an animated...
How to stop animation
I can't seem to stop my object from animating using the code below. There are two conditions based on whether the animate or stop button is clicked. Is there another solution? ~~~ // Spin the image var t = Ti.UI.create2DMatrix(); var spin =...
Need to move view by increments using swipe - NOT working
Trying to move a view with a swipe but it only works the first time. I would like to move the view in increments by 50 either LEFT or RIGHT on each swipe. ~~~ w = Titanium.UI.currentWindow; gallery = Titanium.UI.createView({ backgroundColor:'red', ...
Switching many images at one time
Is there a way to be able to switch many images to a different state. I can have a dynamic number of images on the screen at any given time. Based on a selection they can either be in their 'highlighted' or 'unhighlighted' state. Looping over the images...
After animation return to opacity 1 not working
Thanks in advance! I´m doing a simple image slide show and when I do an animation with an image, when it finished I need to return to 100% opacity, but not work: ~~~ myimage.animate({opacity:0,duration:4000},function (){ myimage.opacity=1; }); ~~~ I...
swipe not always detected
hi all i work on ipad application. i want to animate my view 250px to the left on detecting swipe direction my code is ~~~ view.addEventListener('swipe', function(e) { //alert(e.direction); if (e.direction=="left"){ ...
module: animate custom property
Hi, I created a custom module (android) with a property angle. When i do ~~~ view.angle = 0.5; ~~~ my property is correctly updated and so is my view. Now i would like to use ~~~ view.animate({angle:0.5f, duration: 200}); ~~~ but it does nothing What do...
iOS animate height issues SDK 2
Hi, I was hoping someone could help me out with some height animations I'm having trouble with, using the new SDK 2. Ideally I'd like to create a vertical 'accordion style' menu system natively. So I've been testing out simple view animations. On the...
Click event after translate
I have a view and want to translate it when click it. ~~~ var myView = Ti.UI.createView({ backgroundColor:'#f00', width: 100, height: 100 }); win1.add(myView); myView.addEventListener('click', function() { var tr = Ti.UI.create2DMatrix(); tr =...
How do you reload a different tab from another window?
Hi folks, Hopefully a simple one here! I have a settings screen with a simple button that will remove a setting. Once this button is tapped it'll perform a tiny SQL update, but when I tap back on the tab I want, it'll still show the original content...
Changing image dimensions have skewing issues
Titanium Mobile SDK 1.8.2 iPhone SDK 4.3 Hi, I am animating a photo via eventlistener but the result skews the maximized photo. Am not sure if this is a good practice to detect size dimensions but here goes my code: ~~~ photo01.addEventListener('click',...
animate function does not accept 'dp' values?
// Running 1.8.0 (w route support) mobile on Windows 7 // I have to hide a tabgroups tabs for a view in my app and the only way to successfully do this is ~~~ LT.RunTracker.tabGroup.animate({ top : -95, duration : 0 }); ~~~ This looks fine on my...
How to animate objects on load
Hi, I am using tabgroup to hold the windows. I am able to animate the objects on the 2nd and 3rd tabs using eventlisteners. When the tab is tapped, the window opens up and the objects then get animated. My problem now is how do I get to animate the...
EventListener problem on animated imageviews
Hi, I have created a card game with Titanium and it worked fine until I have changed to the SDK 1.8.1. SDK < 1.8.1: In my example below there are 2 cards. If you click on the first card, there is an animation which turn over the card. If you click...
Issue animating 2 buttons.
I'm using 2 buttons just for a simple test of Titanium mobile animations. Basically, a button would simply just move up from it's current position and if the second button already has been moved up, it'll come back down. Clicking on the second button...
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(),...
delay property ignored in transition animations in 1.8.1
I'm using animations to transition between views and in writing a test program about what appears to be a bug in transitions, I noticed that the delay property was not having an effect on the transition animation - ran the same test program under 1.7.5 and...
Animation callback fires before animation is complete
This animation is firing the callback BEFORE it is complete. According the docs it should fire after the animation is done. Is this a bug or am I doing something wrong? notes: $$ defines a global variable ~~~ var a2 = Ti.UI.createAnimation(); a2.top =...
Navigation group after updating sdk not animating on back action
Hello everyone, I have a question about the navgroup in relation to the simulator in relation to the actual iphone deployement. My navgroup control does not animate when i push the back button anymore when i run on an actual iphone. In the simulator...
Start Animation
Hey, I like to run an image down and when its at the bottom, it should reset and start from top again. But if I take the animation method the reset also animates, although it shouldnt. My code: var aktTop = 0; win1.addEventListener('click',...
Syntax issue with .animate options
I have to begin by saying that in the short time I've been using this product, I am VERY impressed. Keep up the good work. My questions is a bit stupid, related to syntax, but I can't find an example in the docs. I use a lot of imageview.animate in my...
Tabgroup state not persistent in iOS
hey all. In one of my tabs I have a button that uses a FLIP to reveal a different view. If I switch to the flipped view and then change to another tab then back to that tab, I see the default tabs view instead of the flipped view. I've never seen this...
Specify views dynamically for transitions
Hello all, I have a 'book' scenerio where I'm trying to track my previous and next pages (views) using dynamic variables. It works fine if I specify a view to open statically but I need be able to do this dynamically. Seems the 'view' attribute only...
Showing 1-50 of 92 1 2