Android 中的约束布局支持 View 链 ( https://developer.android.com/reference/android/support/constraint/ConstraintLayout#chain-style )
我检查了几个例子,到处都只展示了 3 个 View 来演示这个概念。
3 是极限吗?
由 3 个元素链接
链接 4 个元素
代码 - https://gist.github.com/vamsigp/784be59f8ae1e2137ece1349c726d1f8
最佳答案
您的布局有错误:
app:layout_constraintRight_toRightOf="share2"
应该是:
app:layout_constraintRight_toLeftOf="@+id/share2"
关于android - ConstraintLayout 内可以链接多少个 View (添加关系),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55904807/