Titanium JIRA Archive
Alloy (ALOY)

[ALOY-792] Builtins: Add flip animation

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-08-17T01:49:40.000+0000
Affected Version/sAlloy 1.2.0
Fix Version/sAlloy 1.3.0
ComponentsBuiltins
Labelsn/a
ReporterFokke Zandbergen
AssigneeTony Lukasavage
Created2013-08-15T10:51:01.000+0000
Updated2013-10-10T23:01:30.000+0000

Description

I've added a horizontal and vertical flip animation to transition from one view another. Both views need to be positioned on top of each other.
var animation = require('alloy/animation');

animation.flip(fromView, toView, animation.HORIZONTAL, 750, finishCallback);
animation.flip(fromView, toView, animation.VERTICAL, 750, finishCallback);

animation.flipHorizontal(fromView, toView, 750, finishCallback);
animation.flipVertical(fromView, toView, 750, finishCallback);
I'll attach a PR for this.

Comments

  1. Fokke Zandbergen 2013-08-15

    The PR: https://github.com/appcelerator/alloy/pull/223
  2. Tony Lukasavage 2013-08-17

    PR: https://github.com/appcelerator/alloy/pull/225 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/basics/builtins Functional testing can be confirmed by running the app on all supported and ensuring that it runs successfully with all unit tests passing (with the exception of blackberry that still fails proxy unit tests for an unrelated reason). For iOS, there is additional testing.

    Run the app for iOS

    Click the box that says "front"

    Confirm that it does a 3D horizontal flip to a view that says "back"

    Click it again

    Confirm that it does a 3D horizontal flip to the original "front" view

    Lather, rinse, repeat until satisfied

  3. Federico Casali 2013-10-10

    Verified working as expected. All unit tests passing (Android, iOS and MobileWeb) Test case updated. TiSDK 3.2.0.v20131010124846 Alloy 1.3.0

JSON Source