[TIMOB-1509] selectedBackgroundImage property unsupported on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:56:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M04 |
Components | Android |
Labels | android, defect |
Reporter | Kevin Whinnery |
Assignee | Don Thorp |
Created | 2011-04-15T02:54:44.000+0000 |
Updated | 2011-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
- 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.
- Don Thorp 2011-04-15
- 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...
- Victor Schelin 2011-04-15
- Thomas Huelbert 2011-04-15
(1.5.0.7d08f15), g2 and 2.1 sim added test to bugtest
- Nikolai Derzhak 2011-04-15 rollback wrong update