drawing a line through a view
I am trying to draw vertical, horizontal and cross lines through a view by using labels, but the width is not getting right. Do you know how I can fix that?
Thanks
4 Answers
-
Try using a 1px-wide view, with the backgroundColor set. If this is not a solution, please provide a screenshot, as your objective is not very clear from your question.
-
I'm looking for a way to do this too….want to separate a row into separate areas via a vertical line from top to bottom of that row.
~Brian
-
1px wide row didn't work most of the times as we have data comprises of two rows. I have attached screen shot so you can review. I just need to show row divided in cells, just like we can in HTML. Here is the screenshot:http://xtremeagent365.com/RowSeparator.jpg
-
I did like this
var locseperator=Ti.UI.createLabel({ height:2, width:300, top:270, left:1, backgroundColor:'#000' });