Skip to content Skip to sidebar Skip to footer

Android: Putting A Vertical Divider/separator Line Between Textviews In A Horizontal Linear Layout Nested In Vertical Linear Layout?

For an android content view, I have a vertical linearlayout with some textviews that have some lines to divide and separated the vertical elements, this works fine and the xml is b

Solution 1:

Another option may be to include android:layout_margin (or separate layout_marginTop and layout_marginBottom) to create a space between the top and bottom of the drawn vertical line and the respective horizontal edges of the LinearLayout.

Other than that, I might try a RelativeLayout, and have your vertical line view adjusted to align its top and bottom to one of the adjacent TextViews.


Solution 2:


Post a Comment for "Android: Putting A Vertical Divider/separator Line Between Textviews In A Horizontal Linear Layout Nested In Vertical Linear Layout?"