How to get gravity 'bottom' working on a drawable in xml

前端 未结 7 1465
南方客
南方客 2021-02-12 15:41

I have a simple aim. I want a light grey background on my FrameLayout with a black dividing line underneath it (only undernearth, not all around). So far I have this:

<         


        
7条回答
  •  失恋的感觉
    2021-02-12 16:33

    Unfortunately I have not found a way to get the gravity working for drawables, but I found how you can achieve what you want with pure xml:

    
    
        
            
                
                
            
        
    
    

    Good luck:)

提交回复
热议问题