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.