How rotate line in Android XML?

前端 未结 2 583
囚心锁ツ
囚心锁ツ 2020-12-15 06:01

I\'m trying to draw a diagonal line in an Android app with the XML, but it is not working. It simply draws a horizontal line.

main.xml:



        
2条回答
  •  北海茫月
    2020-12-15 06:30

    You can try this : Create a layout "divider.xml"

    
    
    

    Create a drawable shape "transparent_divider.xml":

    
    
        
        
    
    

提交回复
热议问题