[TIMOB-27855] Android: Animate elevation value
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-08-11T14:56:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.1.0 |
Components | Android |
Labels | android, animation, elevation |
Reporter | Michael Gangolf |
Assignee | Joshua Quick |
Created | 2020-04-19T13:27:01.000+0000 |
Updated | 2020-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();
PR: https://github.com/appcelerator/titanium_mobile/pull/11646
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
FR Passed, waiting on Jenkins build
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.
merged to master for 9.1.0 target
FR for https://github.com/appcelerator/titanium_mobile/pull/11658 complete, waiting on CR.
reviewed and merged to master for 9.1.0
*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