Java 将约束布局更新为相对原因错误
我试图使用相对布局而不是约束布局,但当我将XML文件头更改为相对布局时,所有工具都会停留在顶部Java 将约束布局更新为相对原因错误,java,android,xml,android-layout,android-studio-3.0,Java,Android,Xml,Android Layout,Android Studio 3.0,我试图使用相对布局而不是约束布局,但当我将XML文件头更改为相对布局时,所有工具都会停留在顶部 <android.support.constraint.ConstraintLayout </android.support.constraint.ConstraintLayout> 当我将其更改为相对布局时,所有按钮和文本视图都会显示在左角 <RelativeLayout </RelativeLayout> 由于我是android studio的新手,我
<android.support.constraint.ConstraintLayout
</android.support.constraint.ConstraintLayout>
当我将其更改为相对布局时,所有按钮和文本视图都会显示在左角
<RelativeLayout
</RelativeLayout>
由于我是android studio的新手,我无法理解这一点。删除所有约束,例如: app:layout_constraintLeft_toRightOf=@+id/text 这些是约束布局的约束 对于相对布局,您必须使用 android:layout_toRightOf=@+id/text用于从左到右对齐
有关更多信息,请阅读并链接。打开一本关于这个主题的书,我会的,谢谢你的建议。你能告诉我们你做了什么吗