开发者社区 问答 正文

android:layout_width="0dp"提示出错

suspicious size:this will make the view invisible;probably intended for layout_height 

<fragment 

    andrdoi:id="@+id/left_fragment" 

    android:name="```" 

    android:layout_width="0dp" 

    android:layout_height="match_parent" 

    android:layout_weight="1" 

    /> 

展开
收起
爵霸 2016-05-31 11:37:17 3653 分享 版权
1 条回答
写回答
取消 提交回答
  • 外层须是LinearLayout吧
    LinearLayout还要指定orientation为vertical

    2019-07-17 19:21:42
    赞同 展开评论