Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20265] Android: Ti.UI.View "borderRadius" property not working on android 4.4.2 & 4.2.2

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-02-01T06:51:56.000+0000
Affected Version/sRelease 5.2.0
Fix Version/sRelease 5.2.0
ComponentsAndroid
Labelsqe-5.2.0, regression
ReporterLokesh Choudhary
AssigneeSrikanth Sombhatla
Created2016-01-21T23:37:34.000+0000
Updated2017-05-18T05:20:23.000+0000

Description

This is a regression. Works fine with SDK 5.1.2.GA.

Steps To Reproduce:

1. Use the code below in your app.js:
var win = Ti.UI.createWindow({});
 
var view = Ti.UI.createView({
	backgroundColor:'white',
	height : Ti.UI.FILL,
	width : Ti.UI.FILL,
	borderRadius : '50',
	//borderWidth:'20',
	//borderColor:'red'
});
 
win.add(view);
win.open();
2.Build for android 4.4.2 & 4.4.2 & also with android 6.0 or 5.1.0. 3.After the app launches look at the edges of the view.

Actual Results:

1. The edges of the view are not rounded even though the "borderRadius" property is specified on android 4.4.2 & 4.2.2. 2. We see the rounded edges on android 6.0 ,5.1.0 & 4.4.4. Attaching screenshots for reference.

Expected Results:

1. Rounded edges should be visible when "borderRadius' is specified on android 4.4.2 & 4.2.2.

Attachments

FileDateSize
Android_4.2.2.png2016-01-21T23:35:47.000+000082947
Android_4.4.4.png2016-01-21T23:36:41.000+000089314
Nexus6P.png2016-01-21T23:35:43.000+000048530

Comments

  1. Hans Knöchel 2016-01-31

    [~ssombhatla] Can you provide a backport for this PR (fix version is 5.2.0)?
  2. Srikanth Sombhatla 2016-02-01

    [~hansknoechel] I believe the fix version should be 5.2.0. So a back port is needed ? cc [~cng]
  3. Chee Kiat Ng 2016-02-01

    [~ssombhatla] yes we need this revert PR backported for 5.2.0 definitely.
  4. Srikanth Sombhatla 2016-02-01

    5_2_X backport PR: https://github.com/appcelerator/titanium_mobile/pull/7658
  5. Josh Longton 2016-02-01

  6. Josh Longton 2016-02-01

    Tested on: Nexus 6P (6.0.1)
  7. christian ribe 2016-05-10

    This is still an issue under Titanium SDK 5.2.2.GA
  8. Josh Longton 2016-05-10

    Hi [~chrisribe], Me and [~lchoudhary] are unable to reproduce what you are seeing, would you be able to provide more info like a code snippet, device & andriod version etc

JSON Source