GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-01-25T10:24:20.000+0000 |
Affected Version/s | Release 2.1.0, Release 2.0.1 |
Fix Version/s | Release 3.0.2, Release 3.1.0, 2012 Sprint 23 API, 2012 Sprint 23 |
Components | Android |
Labels | api, module_tableviewrow, qe-testadded |
Reporter | Federico Casali |
Assignee | Ping Wang |
Created | 2012-06-18T13:57:56.000+0000 |
Updated | 2013-01-25T10:24:20.000+0000 |
Problem description
Background Selected Image it's being displayed when clicking on a tableViewRow, but then it does not disappear
Steps to reproduce
Run the sample code (choose an image as backgroundSelectedImage).
Click on the tableViewRow.
Result: backgroundImage is shown but does not disappear after releasing the click.
Only reproducible on Android ICS OS 4.
var win = Ti.UI.createWindow({
backgroundColor:'white',
title:'test'
});
var data = [];
var tvr = Ti.UI.createTableViewRow({
title:'test1',
hasChild:true,
backgroundSelectedImage:'image.png'
});
data.push(tvr);
var tv = Ti.UI.createTableView({
data:data
});
win.add(tv);
win.open();
I see this bug also with Mobile SDK 1.8.2.
This issue happens on 3.x, 4.0 and 4.1 devices.
PR: https://github.com/appcelerator/titanium_mobile/pull/3399 Steps for FR: 1. Run the test case below.
i) Click any row. Should see the background image shows when the row is pressed and the background image disappears when row is not pressed. ii) Modify the above test case to use backgroundSelectedColor instead of backgroundSelectedImage. Run the test case again. iii) Click any row. Should see the red background color shows when the row is pressed and the red background color disappears when row is not pressed. 2. Run KS->Base UI->Views->Table Views for a sanity check.
BackgroundImage as well as backgroundColor is disappearing after click release. Environment used for verification - Titanium SDK: 3.1.0.v20130114171802 Titanium Studio:3.0.1.201212181159 Device: Samsung GALAXY Note (2.3.6) , Nexus 7 Android 4.1
3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3771
Re-open to update fix versions
reopening to update labels