Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1891] Android: Transparent view with border color & width properties results in completely opaque view

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-08T13:24:25.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-05, Release 2.0.0
ComponentsAndroid
Labelsmodule_view, parity, qe-testadded
ReporterPaul Dowsett
AssigneeAllen Yeung
Created2011-04-15T03:04:49.000+0000
Updated2012-03-13T09:14:43.000+0000

Description

Attachments

FileDateSize
screenshot_332.png2011-08-28T18:27:44.000+000018747
screenshot_333.png2011-08-28T18:27:44.000+000023823

Comments

  1. kevinwhinnery 2011-04-15

    request from two pro seats is to include this fix on the 1.5.x branch

  2. Matt Schmulen 2011-11-30

    Bummer ... bumped into this working on an android custom demo onsite in Seoul for an Android hardware :( bump please :)
  3. Jon Barnhart 2012-02-01

    I ran into a similar problem. I wanted to set a borderColor to black and the backgroundColor to transparent so that the parents background would show through (empty tube effect)
  4. Allen Yeung 2012-03-07

    Modified test case to also test property changed:
       var win = Ti.UI.createWindow({
         backgroundColor: '#7B6700',
         fullscreen:false,
         exitOnClose:true
       });
       
       var viewBackground = Ti.UI.createView({
         backgroundColor: 'black',
         top:120,
         width:400,
         height:30
       });
       
       var op= 0.2;
       
       var view = Ti.UI.createView({
         backgroundColor:'white',
         borderColor:'gray',
         borderRadius:7,
         borderWidth:10,
         opacity: op,
         top:10,
         height:300,
         width:200
       });
       
       win.addEventListener('click', function(){
           op = op + .1;
           view.opacity = op;
           Ti.API.info(op);
       });
       
       win.add(viewBackground);
       win.add(view);
       win.open();
       
    1. Launch app 2. Verify that the second view is transparent. 3. Click on the window, and verify that the opacity of the second window changes.
  5. Shawn Lipscomb 2012-03-08

    Is this fixed merged into the 1_8_X branch, or just 2.0 ?
  6. Neeraj Gupta 2012-03-08

    Just 2.0 branch. We are not putting any more fix in 1_8_X branch.
  7. Wilson Luu 2012-03-13

    Closing bug. Verified fix on: SDK build: 2.0.0.v20120312213243 Runtime: V8, Rhino Titanium Studio, build: 2.0.0.201203121914 Device: Droid 3 (2.3.4)

JSON Source