SwipeToLoadLayout添加布局
MarshallMathersIII opened this issue · 2 comments
MarshallMathersIII commented
<com.aspsine.swipetoloadlayout.SwipeToLoadLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipeToLoadLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include layout="@layout/include_titlebar" />
<com.eminem.weibo.widget.RefreshHeaderView
android:id="@id/swipe_refresh_header"
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center" />
<ListView
android:id="@+id/lv_home"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.eminem.weibo.widget.LoadMoreFooterView
android:id="@id/swipe_load_more_footer"
android:layout_width="match_parent"
android:layout_height="100dp"
android:gravity="center" />
</com.aspsine.swipetoloadlayout.SwipeToLoadLayout>
titlebar复用布局,添加之后报错信息为: android.view.InflateException: Binary XML file line #25: Children num must equal or less than 3
请教下作者是我使用方法不对还是SwipeToLoadLayout不支持其他添加布局?
Aspsine commented
SwipeToLoadLayout不支持其他添加布局,你需要把titlebar移到SwipeToLoadLayout外面。
MarshallMathersIII commented
好的,谢谢了