SwipeToLoadLayout icon indicating copy to clipboard operation
SwipeToLoadLayout copied to clipboard

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

Open ShshyDevooo opened this issue 8 years ago • 2 comments

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

ShshyDevooo avatar May 08 '17 06:05 ShshyDevooo

<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>

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

ShshyDevooo avatar May 08 '17 06:05 ShshyDevooo

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

Simon1121 avatar May 31 '17 07:05 Simon1121