[TIMOB-25208] Android: TouchFeedbackColor not working with borderRadius
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-09-25T22:13:03.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.2.0 |
| Components | Android |
| Labels | android, touchfeedback |
| Reporter | Michael Gangolf |
| Assignee | Gary Mathews |
| Created | 2017-08-12T18:39:25.000+0000 |
| Updated | 2017-09-25T22:13:03.000+0000 |
Description
The
touchFeedbackColor that was introduced with 6.1.0.GA is not working if a button has a borderRadius:
var win = Ti.UI.createWindow({
backgroundColor: '#fff',
layout: "vertical"
});
var button0 = Ti.UI.createButton({
title: "working",
tintColor: "#f34102"
});
var button1 = Ti.UI.createButton({
title: "working",
backgroundColor: "#f34102",
touchFeedback: true,
touchFeedbackColor: '#912701',
top:20
});
var button2 = Ti.UI.createButton({
title: "not working",
backgroundColor: "#f34102",
touchFeedback: true,
touchFeedbackColor: '#912701',
borderRadius: 4,
top: 20
});
win.add(button0);
win.add(button1);
win.add(button2);
win.open();
The native button0 and button1 are showing the ripple effect. The last button2 with a borderRadius just shows the backgroundColor without a ripple effect.
SDK: 6.1.2.GA
Android: HTC A9 Android 7 / Moto G2 5.0.2
[~michael] This has been fixed in
6.2.0.GA