Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17991] Android 5.0: Text shadows do not work

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.4.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterFederico Casali
AssigneeUnknown
Created2014-11-07T23:52:19.000+0000
Updated2018-02-28T20:03:33.000+0000

Description

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

Comments

No comments

JSON Source