android RelativeLayout, equal spacing?

前端 未结 2 430
北荒
北荒 2021-01-17 14:48

I\'m using Relative Layout to create a calculator screen, and i have a row of buttons labeled 1, 2, and 3. I want them evenly spaced, but i\'m not sure how to do this with

2条回答
  •  隐瞒了意图╮
    2021-01-17 15:24

    If you want equal spacing, you do not want a RelativeLayout. Use a LinearLayout, as you suggest in your question. If needed, put the Buttons in a LinearLayout and put the LinearLayout in the RelativeLayout.

提交回复
热议问题