更新时间:2023-02-26 12:35:26
将容器的layout_gravity设置为正确.这将迫使它们首先与右边缘对齐.
Set the layout_gravity of your containers to right. That will force them to align to the right edge first.
此外,作为所有内容的相对布局,这样做可能会更容易.您始终可以将其对齐到右边缘或alignParentRight
Also, this may be easier to do as a relative layout for everything. You can always do an align to the right edge or alignParentRight