Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28333] Android: rgba(int,int,int) parity with iOS

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2021-02-03T19:47:14.000+0000
Affected Version/sRelease 9.3.1
Fix Version/sRelease 9.3.2, Release 10.0.0
Componentsn/a
Labelsn/a
ReporterMichael Gangolf
AssigneeChristopher Williams
Created2021-02-02T17:07:33.000+0000
Updated2021-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

Comments

  1. Michael Gangolf 2021-02-02

    PR: https://github.com/appcelerator/titanium_mobile/pull/12435
  2. Christopher Williams 2021-02-03

    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.
  3. Lokesh Choudhary 2021-02-10

    FR Passed.

JSON Source