Aspsine/SwipeToLoadLayout

SwipeToLoadLayout设置高度为wrap_content但是仍然充满父布局,留下一大段空白

ShshyDevooo opened this issue · 2 comments

SwipeToLoadLayout设置高度为wrap_content但是仍然充满父布局,留下一大段空白

<com.aspsine.swipetoloadlayout.SwipeToLoadLayout
android:id="@+id/swipelayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:load_more_enabled="true"
app:refresh_enabled="false"
app:swipe_style="above">

            <android.support.v7.widget.RecyclerView
                android:id="@id/swipe_target"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/bg_table"></android.support.v7.widget.RecyclerView>

            <include
                android:id="@id/swipe_load_more_footer"
                layout="@layout/layout_google_hook_footer"/>
        </com.aspsine.swipetoloadlayout.SwipeToLoadLayout>

这个是我写的布局文件,请问是我这边写的有问题还是都存在这个问题呢?

我也是这样,估计是只能match_parent