Center two buttons horizontally

后端 未结 18 1296
我在风中等你
我在风中等你 2020-12-12 13:32

I try to arrange two buttons (with images on them which work fine) next to each other and to center them horizontally. That\'s what I have so far:



        
18条回答
  •  甜味超标
    2020-12-12 14:14

    If you re searching for a fast fully RelativeLayout solution, the following works well. The dummy View element is invisible and centered horizontal. Both buttons are aligned either left or right.

    
    
    
    
    
    
    
    
    
    

提交回复
热议问题