[AC-984] "New layout" warning using animation
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2015-09-29T03:59:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | animation, ios, mobilesdk |
Reporter | Andrea Vitale |
Assignee | Shak Hossain |
Created | 2015-03-10T13:11:02.000+0000 |
Updated | 2016-03-08T07:37:18.000+0000 |
Description
"New layout set while view [object Arrow] animating: Will relayout after animation." warning appears when I'll try to create a simple animation with opacity.
Steps:
1. Create imageview,
2. Animate using this code
$.Arrow.animate({
opacity: 0.2,
duration: 800
});
Hi, This should be a normal behave, it just tell you that your layout may change. It will not impact your application's running. Regards, Shuo
So.. There's a way to hide these WARN messages? I've a continuous animation and this is too annoying.
HI, The issue is not the warnings. (I am working on an app with similar issue to this, so adding my issue here as comment.) The issue is this: we have multiple Views in the app View 1: has an animation sequence: animation is started User switches to View 2..3... comes back to View 1: Now in View 1: the animation sequence is re-initiated and hence causes disruption the question is: 1. Is there a way i can stop (complete doesn't work) the animation and restart it when the views are switched? If so how would I approach this where do i stop/start the animation (what event) for this to happen? HOW (what command) do I use to stop/start the animation? Please let me know and I appreciate this in advance!! There's no limit as to how many times the user will comeback to the animation view.. they can go in and out, switch to different apps and relaunch the app, at all these points the animation is restarted in the view. THANKS Prashant
Hello, I have tested this issue in updated environment. We could not reproduce it. *Test Environments:* CLI Version :4.0.1 Titanium SDK Version:4.1.0.GA Android: Google Galaxy Nexus:4.1.1 - API 16 - 720x1280 Appc Studio: Appcelerator Studio, build: 4.1.1.201507141126 Alloy: 1.7.3 Target Platform = simulator,iOS SDK: 8.1 *Test code:* *index.js*
index.xml
index.tss
*Test Steps:* * Create an alloy project . * Copy above test code into your project. * Run the project *Ti logs:* [INFO] : Finished building the application in 2m 20s 341ms [INFO] : Launching iOS Simulator [INFO] : Project built successfully in 4m 21s 902ms -- Start simulator log ------------------------------------------------------- [INFO] : Application started [INFO] : testalloy123/1.0 (4.1.0.d57aa7d) [WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation. [WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation. [INFO] : Animation Completd [WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation. [WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation. [WARN] : New layout set while view [object loadingImgView] animating: Will relayout after animation. *Test Result:* Project builds successfully with warning in simulator. This warning be a normal behave, it just tell you that your layout may change. It will not impact application's running.Auto Complete event is working as expected. Thanks