Problem description
Shadow effect are not shown on Android L devices.
Steps to reproduce
Run the following code (take from TIMOB-15890)
var win = Ti.UI.createWindow({
backgroundColor : 'white',
exitOnClose : true,
fullscreen : false,
layout : 'vertical',
title : 'Label Demo'
});
var label = Ti.UI.createLabel({
color : '#900',
font : {
fontSize : 48
},
text : 'A simple label',
textAlign : Ti.UI.TEXT_ALIGNMENT_CENTER,
top : 30,
width : 500,
height : 200
});
var button = Ti.UI.createButton({
color : 'blue',
font : {
fontSize : 48
},
width : 500,
height : 200,
title : 'A simple button',
});
var change = Ti.UI.createButton({
top: 50,
title: "change the shadow of the label and button"
});
change.addEventListener("click", function(){
label.shadowColor = "#aaa";
label.shadowOffset = {x: 10, y: 10};
button.shadowColor = "#aaa";
button.shadowOffset = {x: 10, y: 10};
});
win.add(label);
win.add(button);
win.add(change);
win.open();
1. Run on non-Android L device
Result: label shadows are displayed
2. Run on Android L device
Result: label shadows are not displayed
No comments