Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27855] Android: Animate elevation value

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2020-08-11T14:56:22.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.1.0
ComponentsAndroid
Labelsandroid, animation, elevation
ReporterMichael Gangolf
AssigneeJoshua Quick
Created2020-04-19T13:27:01.000+0000
Updated2020-08-11T14:56:22.000+0000

Description

Currently it is not possible to animate the elevation value. Other values can be animated.
var win = Ti.UI.createWindow({
	layout: "vertical",
	backgroundColor: "#fff"
});

var v = Ti.UI.createView({
	elevation: 20,
	width: 200,
	height: 200,
	top: 50,
	backgroundColor:"#fff"
});
var v2 = Ti.UI.createView({
	width: 200,
	height: 200,
	top: 50,
	backgroundColor:"#fff"
});

win.add([v,v2]);

setTimeout(function(){
	v.animate({
		duration: 2000,
		elevation: 0,
		autoreverse:true,
		repeat: 10
	});
	v2.animate({
		duration: 2000,
		elevation: 20,
		autoreverse:true,
		repeat: 10
	});
}, 1000)

win.open();

Comments

  1. Michael Gangolf 2020-04-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/11646
  2. Michael Gangolf 2020-04-19

    Also removed some of the pre honeycomb stuff so I don't have to write stuff twice and it shouldn't get called at all since the min SDK is higher
  3. Samir Mohammed 2020-04-24

    FR Passed, waiting on Jenkins build
  4. Michael Gangolf 2020-04-25

    I've added color animation in the PR: https://github.com/appcelerator/titanium_mobile/pull/11658 Since the other one is already approved I didn't want to include it there. Hope that is fine.
  5. Christopher Williams 2020-04-28

    merged to master for 9.1.0 target
  6. Samir Mohammed 2020-04-28

    FR for https://github.com/appcelerator/titanium_mobile/pull/11658 complete, waiting on CR.
  7. Christopher Williams 2020-04-28

    reviewed and merged to master for 9.1.0
  8. Samir Mohammed 2020-08-11

    *Closing ticket*. Improvement verified in SDK version 9.1.0.v20200810120239. *Test and other information can be found at:* https://github.com/appcelerator/titanium_mobile/pull/11658

JSON Source