Vertical line using XML drawable

前端 未结 15 704
无人及你
无人及你 2020-11-27 09:57

I\'m trying to figure out how to define a vertical line (1dp thick) to be used as a drawable.

To make a horizontal one, it\'s pretty straightforward:



        
15条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 10:15

    Instead of a shape, you could try a View:

    
    

    I have only used this for horizontal lines, but I would think it would work for vertical lines as well.

    Use:

    
    

    for a horizontal line.

提交回复
热议问题