Android: Adding A Horizontal Line In TableLayout

It may be common instinct for you to place a horizontal line in a TableLayout within the TableRow tags. However, when I did try that, the horizontal line never stretched to fill the whole width.

The trick is not to place the View tag inside the TableRow tag but outside of it. See example below.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *