[TIMOB-24586] activityExitAnimation doesn't work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | ILAY SENER |
Assignee | Eric Merriman |
Created | 2017-04-04T04:59:17.000+0000 |
Updated | 2018-08-14T16:17:51.000+0000 |
Description
activityExitAnimation animation doesn't work during window close. However, activityEnterAnimation works perfectly fine.
*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
});
}
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*
Looks like a SDK issue, moving to TIMOB.