Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20411] Android: Only the border has a radius when borderRadius is set to 10

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.2.0
Fix Version/sn/a
ComponentsAndroid
LabelsengSchedule, qe-5.2.0
ReporterJosh Longton
AssigneeUnknown
Created2016-02-17T01:06:14.000+0000
Updated2019-09-12T17:15:59.000+0000

Description

Only the border has a radius when borderRadius is set to 10 on android (see images) *Steps to reproduce:*

Use the app.js file below.

*Actual :* Only the border has a radius when borderRadius is set to 10; !Screenshot_20160216-170221.png|thumbnail! *Expected:* View has a radius as well as the views border. (see image) !Screenshot_20160216-170230.png|thumbnail! *App.js*
var win = Ti.UI.createWindow({
	backgroundColor: 'blue'
});

var view = Ti.UI.createView({
	left: 10,
	height: 300,
	width: 300,
	top: 10,
	backgroundColor: 'white',
	borderWidth: 20,
	borderColor: 'red'
});


var b1 = Ti.UI.createButton({
	top: 310,
	title: "backgroundColor=transparent"
});
b1.addEventListener("click", function() {
	view.backgroundColor = 'transparent';
});

var b2 = Ti.UI.createButton({
	top: 350,
	title: "backgroundColor=white"
});
b2.addEventListener("click", function() {
	view.backgroundColor = 'white';
});

var b3 = Ti.UI.createButton({
	top: 390,
	title: "borderRadius=30"
});
b3.addEventListener("click", function() {
	view.borderRadius = 30;
});

var b4 = Ti.UI.createButton({
	top: 430,
	title: "borderRadius=10"
});
b4.addEventListener("click", function() {
	view.borderRadius = 10;
});

var b5 = Ti.UI.createButton({
	top: 470,
	title: "borderRadius=0"
});
b5.addEventListener("click", function() {
	view.borderRadius = 0;
});
var b6 = Ti.UI.createButton({
	top: 510,
	title: "borderToggle"
});
b6.addEventListener("click", function() {
	if (view.borderWidth == 0) {
		view.borderWidth = 20;
	} else {
		view.borderWidth = 0;
	}
});



win.add(view);
win.add(b1);
win.add(b2);
win.add(b3);
win.add(b4);
win.add(b5);
win.add(b6);

win.open();

Attachments

FileDateSize
Screenshot_20160216-170221.png2016-02-17T01:03:49.000+000094263
Screenshot_20160216-170230.png2016-02-17T01:03:51.000+000097125

Comments

No comments

JSON Source