【发布时间】:2018-07-30 11:33:03
【问题描述】:
我该如何解决这个问题?
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".Detail_comment"
>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="@dimen/heightrvComment">
</android.support.v7.widget.RecyclerView>
<include
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/heightToolbar"/>
</android.support.constraint.ConstraintLayout>
我找不到我的代码有什么问题。帮帮我。
我想我已经正确放置了所有layout_height 和layout_width。
【问题讨论】:
-
You must supply a layout_height attribute- 这里有什么不清楚的地方? -
发布您的
toolbar.xml布局。
标签: android android-layout height