GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-05-09T22:22:13.000+0000 |
Affected Version/s | Release 7.1.0, Release 7.0.2 |
Fix Version/s | Release 7.3.0 |
Components | Android |
Labels | Android, animation, borderRadius |
Reporter | Jorge Macias Garcia |
Assignee | Gary Mathews |
Created | 2018-03-02T08:18:20.000+0000 |
Updated | 2018-11-09T13:16:48.000+0000 |
Affects to 7.0.2, 7.1.RC
Animating a view with border radius doesn't works properly. On iOS it works fine.
Check attached demo to see code example.
The problem is that a View with a borderView will create a parent TiBorderWrapperView View. Now when animating properties it will animated them on the outer view and not the view inside the TiBorderWrapperView. When adding the following code:
in [TiAnimationBuilder](https://github.com/appcelerator/titanium_mobile/blob/1150f8228f8d569d1ab397e381aa1f76032cc148/android/titanium/src/java/org/appcelerator/titanium/util/TiAnimationBuilder.java#L315) it will use the inner view. I think it is only the backgroundColor where the check for borderWrapper is needed. All other properties (opacity, position) are fine on the outer view. I'm setting up a PR
PR: https://github.com/appcelerator/titanium_mobile/pull/9900 !animate.gif!
FR Passed. Waiting for merge to be enabled.
PR Merged.
Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180607210411 Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/9900
It doesn't works fine with 7.5.0.v20181108182512 See the link with the test app: [Example](http://personales.upv.es/jormagar/gif/border_radius_animation_bg.gif)