美文网首页
ConstraintLayout 水平方向权重问题

ConstraintLayout 水平方向权重问题

作者: 折翅的雏鹰 | 来源:发表于2019-02-27 17:12 被阅读0次

                      实现效果如下: 

                    tv1应设置的属性:app:layout_constraintTop_toTopOf="parent"

                                                  app:layout_constraintBottom_toTopOf="@+id/tv2"

                   tv2应设置的属性:app:layout_constraintBottom_toTopOf="@+id/tv3"

                                                  app:layout_constraintTop_toBottomOf="@+id/tv1"

                                                   android:layout_height="0dp"

                   tv3应设置的属性:app:layout_constraintBottom_toBottomOf="parent"

                                                  app:layout_constraintTop_toBottomOf="@+id/tv2"

                   

相关文章

网友评论

      本文标题:ConstraintLayout 水平方向权重问题

      本文链接:https://www.haomeiwen.com/subject/enmfuqtx.html