how to add bottom border in relativelayout

前端 未结 4 1807
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 06:04


        
4条回答
  •  孤街浪徒
    2021-02-04 06:19

    I hope I understood what you said.

    in the res folder create a new folder (if you don't already have it) named drawable

    there create an xml named "borders.xml"

    
    
        
            
    
                
    
                
    
                
            
        
        
            
                
    
                
    
                
    
                
            
        
    
    

    You can further edit it as you like. Then select the layout from the Outline and click Background properties, and select the borders xml that you created.

    This will create borders for all 4. Alternatively, you can add a simple

    
    

    line and add it to the bottom of your layout and change the color/size to your liking.

提交回复
热议问题