[TIMOB-28333] Android: rgba(int,int,int) parity with iOS
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2021-02-03T19:47:14.000+0000 |
| Affected Version/s | Release 9.3.1 |
| Fix Version/s | Release 9.3.2, Release 10.0.0 |
| Components | n/a |
| Labels | n/a |
| Reporter | Michael Gangolf |
| Assignee | Christopher Williams |
| Created | 2021-02-02T17:07:33.000+0000 |
| Updated | 2021-02-10T19:12:54.000+0000 |
Description
iOS will use rgb if the alpha value of rgba is missing. Android will ignore the color
var win = Ti.UI.createWindow({ backgroundColor: 'white' });
win.open();
var view1 = Ti.UI.createView({backgroundColor:"rgb(255,0,0)", width: 100,height: 100, top:0});
win.add(view1);
var view2 = Ti.UI.createView({backgroundColor:"rgba(255,0,0)", width: 100,height: 100});
win.add(view2);
should display 2 red squares.
SDK 9.3.1.GA
Android 11 Pixel 4
PR: https://github.com/appcelerator/titanium_mobile/pull/12435
Merged to master for 10.0.0 target. Manually back ported w/ merge conflict resolved to 9_3_X for potential 9.3.2 release.
FR Passed.