gpt4 book ai didi

android - 缺少 Barrier 的约束警告 - Bug?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:49:27 25 4
gpt4 key购买 nike

我在 Barrier 上收到缺少约束警告,它已添加到 ConstraintLayout 的(现在稳定的)版本 1.1.0 >.

This view is not constrained, it only has designtime positions, so it will jump to (0,0) unless you add constraints

但是,据我所知,Barrier 不使用任何约束,我认为甚至不可能添加它们

这是一个错误还是我遗漏了什么?

最佳答案

如果您在屏障上定义了诸如 tools:layout_editor_absoluteX="123dp"tools:layout_editor_absoluteY="384dp" 之类的内容,只需将其删除,警告就会消失.

关于android - 缺少 Barrier 的约束警告 - Bug?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49948414/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com