Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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({

// 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)

— asked November 3rd 2010 by William Ovanna
  • android
  • hasdetail
  • tableviewrow
  • titanium1.4

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.

    — answered November 3rd 2010 by Colton Arabsky
  • 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.

    — answered November 3rd 2010 by William Ovanna
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.