Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9616] Android: on ICS 4, 'backgroundSelectedImage:image' does not disappear after clicking on a tableViewRow

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-01-25T10:24:20.000+0000
Affected Version/sRelease 2.1.0, Release 2.0.1
Fix Version/sRelease 3.0.2, Release 3.1.0, 2012 Sprint 23 API, 2012 Sprint 23
ComponentsAndroid
Labelsapi, module_tableviewrow, qe-testadded
ReporterFederico Casali
AssigneePing Wang
Created2012-06-18T13:57:56.000+0000
Updated2013-01-25T10:24:20.000+0000

Description

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();

Comments

  1. MAIRDUMONT GmbH & Co. KG 2012-06-21

    I see this bug also with Mobile SDK 1.8.2.
  2. Ping Wang 2012-11-07

    This issue happens on 3.x, 4.0 and 4.1 devices.
  3. Ping Wang 2012-11-09

    PR: https://github.com/appcelerator/titanium_mobile/pull/3399 Steps for FR: 1. Run the test case below.
       var win = Ti.UI.createWindow({
           backgroundColor:'white',
           title:'test'
       });
        
       var data = [];
        
       
       for (var i = 0; i < 30; i++) {
       	var tvr = Ti.UI.createTableViewRow({
       		title : 'test ' + i,
       		hasChild : true,
       		backgroundSelectedImage:'KS_nav_ui.png'
       		//backgroundSelectedColor : 'red'
       	});
       	data.push(tvr);
       }
       
        
       var tv = Ti.UI.createTableView({
           data:data
       });
        
       win.add(tv);
        
       win.open();
       
    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.
  4. Shyam Bhadauria 2013-01-22

    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
  5. Ping Wang 2013-01-23

    3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3771
  6. Ping Wang 2013-01-24

    Re-open to update fix versions
  7. Anshu Mittal 2013-01-25

    reopening to update labels

JSON Source