Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1607

backgroundColor animation starting from transparent doesn't work (android)

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Invalid
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Labels:
    • Environment:

      Titanium 3.5.0
      Android

      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

          Activity

            People

            • Assignee:
              rtlechuga Radamantis Torres-Lechuga (Inactive)
              Reporter:
              buddyguards grebulon
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code