Titanium Community Questions & Answer Archive

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

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

— asked November 10th 2010 by Nikola Simeonov
  • desktop
0 Comments

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.

    — answered November 11th 2010 by Paul Dowsett
    permalink
    0 Comments
  • 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

    — answered February 17th 2011 by Brian Dittmer
    permalink
    0 Comments
  • 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

    — answered February 18th 2011 by Abdul Rehman
    permalink
    0 Comments
  • I did like this

    var locseperator=Ti.UI.createLabel({
        height:2,
        width:300,
        top:270,
        left:1,
        backgroundColor:'#000'
    });
    
    — answered March 31st 2011 by Steve Hovey
    permalink
    0 Comments
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.