Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1607] backgroundColor animation starting from transparent doesn't work (android)

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2015-08-07T22:33:06.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandoid
Reportergrebulon
AssigneeRadamantis Torres-Lechuga
Created2015-05-06T09:23:29.000+0000
Updated2016-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

FileDateSize
After animate.png2015-05-07T09:47:57.000+000048964
After animate2.png2015-05-07T09:47:57.000+000048551
Before animate.png2015-05-07T09:47:57.000+000048889

Comments

No comments

JSON Source