C.K*_*raz 42 android-layout android-studio android-constraintlayout constraint-layout-chains
当我在Android Studio中使用布局编辑器时,我尝试使用约束锚点在EditText 视图和按钮 视图之间建立链(双向约束),但它不会产生链.
如果我尝试将一个视图约束到另一个视图,它只会产生约束.
我试图将EditText的右侧链接到Button的左侧.
这就是我的布局编辑器的样子:

Gus*_*son 12
我遇到过同样的问题.按照教程的指示进入XML解决了这个问题:https: //developer.android.com/training/basics/firstapp/building-ui.html
在教程中,单击"查看最终布局XML"并进行比较.我的XML丢失了:
app:layout_constraintLeft_toRightOf="@+id/editText"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
16545 次 |
| 最近记录: |