How to right align widget in horizontal linear layout Android?

前端 未结 19 3112
温柔的废话
温柔的废话 2020-12-12 10:34

This is the code I am using and it is not working:




        
19条回答
  •  孤街浪徒
    2020-12-12 10:43

    For aligning one element at start and one at the end of the LinearLayout, you can wrap it in an RelativeLayout.

     
    
        
            
        
    
        
            
        
    
    

    The result of this example is following: Link to the image

    Note: You can wrap whatever you want inside and align it.

提交回复
热议问题