美文网首页
RelativeLayout 设置wrap_content无效

RelativeLayout 设置wrap_content无效

作者: BergHuang | 来源:发表于2019-04-17 10:35 被阅读0次

     Des: RelativeLayout 设置了高度为wrap_content,实际运行结果为match_parent效果。

    Cause: 子节点设置了 `android:layout_alignParentBottom="true"` 导致父子节点高度循环依赖

    Resolve: 去掉循环依赖的属性或换用其他layout。

    相关文章

      网友评论

          本文标题:RelativeLayout 设置wrap_content无效

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