安卓解决layout的design模式报错This view is not constrained

版权声明:转载请联系博主、标明出处 https://blog.csdn.net/jyfbug/article/details/89154730

今天写一个新的layout,想着用design模式进行拖拽写,但是拖得很完美,最后报错:
This view is not constrained, it only has designtime positions, so it will jump to (0,0) unless you add constraints.
意思就是:
此视图不受约束,它只有设计时位置,因此除非添加约束,否则它将跳转到(0,0)
因此对它添加约束,使用“infer Constrains”按钮就可以了。
如图所示:

猜你喜欢

转载自blog.csdn.net/jyfbug/article/details/89154730