有两点需要注意:
确认你整个页面是LinearLayout ,
其次 include也需要加一个布局,如:
<LinearLayout android:layout_below="@id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" > <include layout="@layout/content_main" /> </LinearLayout>
有两点需要注意:
确认你整个页面是LinearLayout ,
其次 include也需要加一个布局,如:
<LinearLayout android:layout_below="@id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" > <include layout="@layout/content_main" /> </LinearLayout>