Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5837] Android: Window activityExitAnimation is Ignored

GitHub Issuen/a
Resolution Date2018-08-14T16:18:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsAndroid, bug
ReporterRussell Kenny
AssigneeShak Hossain


I'm trying to configure my windows to use consistent transition animations and found that while activityEnterAnimation works properly, the values I specify for activityExitAnimation are ignored and the default animation is used instead. Window 1 XML:
<Window id="testWin1" title="Test Window 1" zIndex="100">
	<View layout="vertical" backgroundColor="#393">
		<Label color="#fff">This is test window 1</Label>
		<Button onClick="openWin2">Open Win 2</Button>
Window 1 Controller JS:
function openWin2() {
  var objWin = Alloy.createController('testWin2').getView();
	activityEnterAnimation: Ti.Android.R.anim.fade_in,
	activityExitAnimation: Ti.Android.R.anim.fade_out
Window 2 XML:
<Window id="testWin2" title="Test Window 2" zIndex="200">
	<View layout="vertical" backgroundColor="#33f">>
		<Label color="#fff">This is test window 2</Label>
		<Button onClick="closeWin">Close Win 2</Button>
Window 2 Controller JS:
function closeWin() {
	activityEnterAnimation: Ti.Android.R.anim.fade_in,
	activityExitAnimation: Ti.Android.R.anim.fade_out
Note that I've tried several different values for activityExitAnimation (as identified on https://developer.android.com/reference/android/R.anim) and they were all ignored. I also tried testing in both Android 16 and Android 23 and the result was the same in both places (although of course the default animation differs between android releases).


  1. Russell Kenny 2018-08-14

    Sorry, I just saw that this is a duplicate of TIMOB-24586.

JSON Source