[AC-1607] backgroundColor animation starting from transparent doesn't work (android)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-08-07T22:33:06.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | andoid |
Reporter | grebulon |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-05-06T09:23:29.000+0000 |
Updated | 2016-03-08T07:38:05.000+0000 |
Description
The following animation is supposed to obscure the main white view (with what's drawn on it) with a half-transparent black (I put a popup on top of the overlay). You should see the the white view getting darker until it's covered with half-black transparent. I use a backgroundColor animation instead of opacity because I put stuff on the overlay which I want to be opaque.
var view=Ti.UI.createView({top:0,bottom:0,backgroundColor:'white'});
...
var overlay=Ti.UI.createView({top:0,bottom:0,backgroundColor:'#0000'});
view.add(overlay);
overlay.animate({backgroundColor:'#8000',duration:150});
What happens is that when the animation starts, the overlay view comes up *black* (instead of transparent) and then becomes half transparent.
Attachments
File | Date | Size |
---|---|---|
After animate.png | 2015-05-07T09:47:57.000+0000 | 48964 |
After animate2.png | 2015-05-07T09:47:57.000+0000 | 48551 |
Before animate.png | 2015-05-07T09:47:57.000+0000 | 48889 |
No comments