Center two buttons horizontally

后端 未结 18 1276
我在风中等你
我在风中等你 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:06

    I know you've already found a solution, but you might also find this useful. The empty TextView used as the center reference can double as padding between the buttons by increasing the dip setting. It also handles screen orientation changes well.

    
    
        

    Screenshot of the result:

    screen shot of the result

提交回复
热议问题