How to right align widget in horizontal linear layout Android?

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

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




        
19条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 10:58

    Here is a sample. the key to arrange is as follows

    android:layout_width="0dp"
    android:layout_weight="1"
    

    Complete code

    
    
    
        
    
        
    
    
    

提交回复
热议问题