[TIMOB-2842] Android: Setting hasCheck after specifying hasChild is false does not work
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:00:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint-2011-09 |
Components | Android |
Labels | android, enterprise, feature, reported-1.6.0, rplist, tbs-1.7.0 |
Reporter | Rick Blalock |
Assignee | Don Thorp |
Created | 2011-04-15T03:30:53.000+0000 |
Updated | 2011-04-17T02:00:13.000+0000 |
Description
Cannot programmatically set hasCheck while hasChild is false.
Enterprise ticket here: http://developer.appcelerator.com/helpdesk/view/66121">http://developer.appcelerator.com/helpdesk/view/66121
Android SDK 2.2 - Ti 1.6
var win = Ti.UI.createWindow({
backgroundColor:'red',
});
var row = Ti.UI.createTableViewRow({
color:'#333',
text: 'Not Working ',
hasChild:false
});
var row1 = Ti.UI.createTableViewRow({
color:'#333',
text: 'Working',
});
row.hasCheck = true;
row1.hasCheck = true;
var table = Ti.UI.createTableView({data:[row,row1]});
win.add(table);
win.open();
Staging in 1.6.0 sto see if we can work it in.
Is this a duplicate of #2755?
Hal, no it's not a duplicate, setting the hasChild property to false makes it so you can't set the hasCheck property to true.
(from [eaeb22cec2cd34690a10d41cfe68f04b86ffdde1]) Make sure the "check" and "child" tableview row rightimage drawables can show despite the other one being explicitly set to false. [#2842 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/eaeb22cec2cd34690a10d41cfe68f04b86ffdde1"> https://github.com/appcelerator/titanium_mobile/commit/eaeb22cec2cd...
Tested with Titanium SDK version: 1.7.0 (03/01/11 12:40 eaeb22c) on
G1 1.6
Nexus One 2.2.2
Emulator 2.1
iPhone 4 OS 4.2.1
var row = Ti.UI.createTableViewRow({
TableViewRow.text is an undocumented property, must use title to work on iOS