将layout_constraintWidth_default与spread或wrap结合使用不会产生不同吗?

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

[我有3个按钮,当我将layout_constraintWidth_defaultwrap一起使用时,我看到在换行和展开之间切换并且我有android:layout_width="0dp" enter image description here时,行为没有变化

android android-constraintlayout
1个回答
0
投票
layout_constraintWidth_default="wrap"已过时,使用其他建议的方式将导致类似的行为。不推荐使用的方法现在可能还不错,但是不推荐使用它们是出于某种原因,也许是一些不必要的行为或与Android开发的未来计划有关。

enter image description here

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