Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1509] selectedBackgroundImage property unsupported on Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:22.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M04
ComponentsAndroid
Labelsandroid, defect
ReporterKevin Whinnery
AssigneeDon Thorp
Created2011-04-15T02:54:44.000+0000
Updated2011-04-17T01:56:22.000+0000

Description

In the Kitchen Sink layout example (the first one, the Starbucks-ish one), selectedBackgroundImage is not used when a row is tapped - the default Android orange highlight still shows. Tested on a version of 1.4.1 pulled from master.

Comments

  1. Bill Dawson 2011-04-15

    A simpler fail case. App.js (assumes you have KS_nav_ui.png in your Resources, which is there by default):

       Titanium.UI.setBackgroundColor('#000');
       var w = Titanium.UI.createWindow({  
           title:'Test',
           backgroundColor:'#fff',
           fullscreen: true,
           exitOnClose: true
       });
       
       var rows = [];
       for (var i = 0; i < 30; i++) {
           rows.push(
               Ti.UI.createTableViewRow({
                   selectedBackgroundImage: 'KS_nav_ui.png', 
                   title: 'row ' + i
               })
           );
       }
       w.add(Ti.UI.createTableView({data: rows}));
       w.open();
       

    If you run that in Android, touching a row does not show the background image. If, however, you happen to use the scroll wheel to move around, it does show.

    Assigning to Mr. D. Thorp for milestone/priority.

  2. Don Thorp 2011-04-15

    Please see #1979 and #2101 for additional test cases.

  3. Marshall Culpepper 2011-04-15

    (from [3ffe548cf7e1e12bf55f82aecf3860ab66e9c8c3]) initial implementation of backgroundSelectedImage and backgroundSelectedColor for TableViews in Android. [#1509 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/3ffe548cf7e1e12bf55f82aecf3860ab66e9c8c3"> https://github.com/appcelerator/titanium_mobile/commit/3ffe548cf7e1...

  4. Victor Schelin 2011-04-15

    Why not slam an update for tickets #1979 / #2101 while you're at it? :)

  5. Thomas Huelbert 2011-04-15

    (1.5.0.7d08f15), g2 and 2.1 sim added test to bugtest

  6. Nikolai Derzhak 2011-04-15

    rollback wrong update

JSON Source