Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24586] activityExitAnimation doesn't work

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterILAY SENER
AssigneeEric Merriman
Created2017-04-04T04:59:17.000+0000
Updated2018-08-14T16:17:51.000+0000

Description

activityExitAnimation animation doesn't work during window close. However, activityEnterAnimation works perfectly fine.
var win = Ti.UI.createWindow({
    backgroundColor:'white'
});

var button = Ti.UI.createButton({title:'open'});
button.addEventListener('click', function (){
    var win = Ti.UI.createWindow({
        backgroundColor:'blue',
        modal:false
    });
    win.addEventListener('android:back', function(){
        win.close({
            activityEnterAnimation : Ti.Android.R.anim.slide_in_left,
            activityExitAnimation : Ti.Android.R.anim.slide_in_left
        });
    })
    win.open({
        activityEnterAnimation : Ti.Android.R.anim.slide_in_left,
        activityExitAnimation : Ti.Android.R.anim.slide_in_left
    })
});
win.add(button);
win.open();
create a basic Alloy project. Then a new controller' events' and use the below code: *index.xml* *index.js* function doClick(e) { console.log(JSON.stringify(e)); Alloy.createController('events').getView().open({ activityEnterAnimation : Ti.Android.R.anim.slide_in_left, activityExitAnimation : Ti.Android.R.anim.slide_in_left, // animated:true }); } $.index.open(); *events.xml* *events.js* var args = $.args; function close(e) { $.events.close({ activityEnterAnimation : Ti.Android.R.anim.slide_in_left, activityExitAnimation : Ti.Android.R.anim.slide_in_left, animted : true }); }

Comments

  1. Feon Sua Xin Miao 2017-04-17

    Looks like a SDK issue, moving to TIMOB.

JSON Source