Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6649] Android: elevation on View with custom edge radii renders incorrectly

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsAndroid
ReporterTeun Klijn
AssigneeAbir Mukherjee
Created2020-12-15T17:12:17.000+0000
Updated2020-12-15T17:12:17.000+0000

Description

When you set the elevation of a view with multiple values for borderRadius the elevation shadow doesn't follow the borderRadius. This does work correctly when you set the borderRadius to a single value. *To reproduce*

Run the code on a Android device/emulator

var window = Ti.UI.createWindow({
	backgroundColor: 'white'
});

window.add(Ti.UI.createView({
	top: 0,
	height: 120,
	backgroundColor: 'green',
	borderRadius: "0 0 60 60",
	elevation: 5
}));

window.open();
*Expected behaviour* The elevation shadow follows the view border. *Actual behaviour* The elevation shadow renders as if the view is rectangular. !Screenshot_1608052255.png|thumbnail!

Attachments

FileDateSize
Screenshot_1608052255.png2020-12-15T17:11:09.000+000038539

Comments

No comments

JSON Source