Titanium 1.4 Titanium.UI.TableViewRow hasDetail property not working in Android
If I set the hasDetail property to true, it does NOT render an arrow on the right side of the table row on Android. To verify, I went to the KitchenSink App, and saw that it is not working there either.
taken from table_view_api_basic.js file
// create table view data object
var data = [];
data[0] = Ti.UI.createTableViewRow({hasChild:true,title:'Row 1'});
data[1] = Ti.UI.createTableViewRow({hasDetail:true,title:'Row 2'});
data[2] = Ti.UI.createTableViewRow({hasCheck:true,title:'Row 3'});
data[3] = Ti.UI.createTableViewRow({title:'Row 4'});
// create table view
var tableview = Titanium.UI.createTableView({
data:data
});
// See file for rest of the code
hasChild, and hasCheck work.
Is there a workaround, or a bug opened up on this?
(don't know where to look at the bug list for Appcelerator)
2 Answers
-
I don't even think Android has a "hasDetail"-type rightImage, you have to use hasChild or a custom image. I've never heard of hasDetail working, but hasDetail in iOS looks exactly the same as the hasChild in Android, so I just use that.
-
If it's true that this was never intended to work in android, that's fine, I don't have a problem with UI elements / properties that are iPhone only. However, the docs need to be updated to reflect this.