TableViewRow Title not showing in Andriod

You must Login before you can answer or comment on any questions.

Dear all

This problem only occur in android, I've create a table with several rows, if I create it without any additional ui, like the following, it will fine,

var row=Ti.UI.createTableViewRow({
   height: 60,
   title: 'Hello',   
   font: { fontSize:16 },
   leftImage: '/images/row.png',
   className: 'row'   
  });
but once I add an UI, say like an image, the row title will not be seen, and it only happen on andriod, on IOS it is fine, I can see the title showing.
var imgSw=Ti.UI.createImageView({
   right:1,   
   height:48,   
   image:'/images/format_list-64.png',
   sw:true, 
  });
 
 row.add(imgSw);
any idea why that happen.

I know I can work around this problem, by adding an label, and that raise another problem, which is when the user click on the label (not the row, that happen sometime), the row event will not fire, and I know I can work around this problem, by add the label event listener and something about it when this happen. but you know what I'm tire of working around this or that which they suppose to work.

OK, please ignore my last sentence, I just got lost and tire, anyone has any idea?

— asked 9 months ago by J T
0 Comments

2 Answers

http://docs.appcelerator.com/titanium/2.1/index.html#!/guide/TableViews

once you add an object to the row like this

var imgSw=Ti.UI.createImageView({
   right:1,   
   height:48,   
   image:'/images/format_list-64.png',
   sw:true, 
  });
 
 row.add(imgSw);
the title property is ignored, see the documentation in the link I provided for additional information

— answered 9 months ago by Aaron Saunders
answer permalink
2 Comments
  • OK

    1, the documentation in the link doesn't said anything about that

    2, why the very same title is showing in IOS but not in andriod, why didn't it ignored in IOS.

    — commented 9 months ago by J T

  • Hey Aaron Saunders any other idea?, or should I ignore it too?

    — commented 9 months ago by J T

OK

1, the documentation in the link doesn't said anything about that

2, why the very same title is showing in IOS but not in andriod, why didn't it ignored in IOS.

Your Answer

Think you can help? Login to answer this question!