Aspsine/SwipeToLoadLayout

当嵌套ListView发现滑动冲突问题

chenyayun opened this issue · 1 comments

`<com.aspsine.swipetoloadlayout.SwipeToLoadLayout
android:id="@+id/swipeToLoadLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">

    <com.etah.livebox.widget.RefreshHeaderView
        android:id="@id/swipe_refresh_header"
        android:layout_width="match_parent"
        android:layout_height="70dp"
        android:background="@color/page_background"
        android:gravity="center"
        android:textColor="@color/grey700"/>

    <LinearLayout
        android:id="@id/swipe_target"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <ListView
            android:id="@+id/listView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>
    </LinearLayout>
    <!--<ListView-->
        <!--android:id="@+id/swipe_target"-->
        <!--android:layout_width="match_parent"-->
        <!--android:layout_height="match_parent"/>-->
    <com.etah.livebox.widget.LoadMoreFooterView
        android:id="@id/swipe_load_more_footer"
        android:layout_width="match_parent"
        android:layout_height="70dp"
        android:background="@color/page_background"
        android:gravity="center"
        android:textColor="@color/grey700"/>
</com.aspsine.swipetoloadlayout.SwipeToLoadLayout>`

我发现 滑动事件与下拉和上拉事件冲突。

如果你的@id/swipe_target对应的view不是ListView或者RecyclerView等可以滑动的view,请参照 #46