Android的ConstraintLayout

问题描述 投票:0回答:1

这是设计布局时我的应用程序在IDE中的外观

enter image description here

但是,这就是我手机上的样子。

enter image description here

将约束设置为父级或最近的组件更好吗?

android android-studio android-layout android-constraintlayout
1个回答
0
投票

最好将约束设置为最接近的元素,而我也不是专家,但是在最佳实践中,我已经看到人们更喜欢线性布局作为您的页面设计。

© www.soinside.com 2019 - 2024. All rights reserved.