Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5362] Android: TableView/TableRow transparent background color not working while using borderColor

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2013-06-20T12:10:17.000+0000
Affected Version/sRelease 1.7.2, Release 1.8.0
Fix Version/sRelease 3.0.0
ComponentsAndroid
Labelsmodule_tableview, qe-port, qe-testadded
ReporterKarol Pomaski
AssigneeNeeraj Gupta
Created2011-09-26T10:23:49.000+0000
Updated2013-06-20T12:10:17.000+0000

Description

Problem

While using borderColor the tableView has not anymore transparent background.

Reproducible Steps

1. Execute the sample code - while executing the tableView would have the same background color as declared for border (#75706d). While removing the borderColor or setting it to "transparent" the tableView gets the transparent background so that we see the windows color.

Sample Code

var win = Ti.UI.createWindow({
  backgroundColor: "red"
});
var row = Ti.UI.createTableViewRow( { textAlign : 'left', height : 30, backgroundColor : 'transparent',backgroundImage: 'none', background: 'transparent' });
var row2 = Ti.UI.createTableViewRow( { textAlign : 'left', height : 30, backgroundColor : 'transparent',backgroundImage: 'none', background: 'transparent' });
var data = [row,row2];
var table = Titanium.UI.createTableView({data:data, 
      backgroundColor : 'transparent',
            background: 'transparent',
            backgroundImage: 'none',
            borderColor: '#75706d'});
win.add(table);

win.open();

Associated HelpDesk Ticket

http://appc.me/a/APP-862574

Comments

  1. Josh Roesslein 2012-07-12

    Fix from TIMOB-9469 resolves issue.
  2. Shyam Bhadauria 2012-08-17

    Environment used for verification - Tested with Titanium SDK: 2.2.0.v20120816212512 Tested with Titanium  Studio: 2.1.1.201207271312 Device - Samung GALAXY Tab 620 Android 3.2, Android Emulator 2.2 Machine OS - MAC 10.8
  3. Priya Agarwal 2013-06-20

    Reopening just to update label.
  4. Priya Agarwal 2013-06-20

    Updated label and verified with: Tested on: Device: Nexus 7 tab Android Version 4.1 SDK:3.1.2.v20130619101604 Appcelerator Studio: 3.1.1.201306131423 OS: OSX 10.8 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1

JSON Source