1
我有一个应用程序SwipeRefreshLayout
它有一个ListView
里面。当填充ListView
时,我可以轻松地向下滚动以阅读列表中较旧的项目,但是当我尝试向上滚动此操作时,即使我尝试向上滚动,也会误认为是Pull2Refresh操作。无论我将手指放在哪里,它仍然会错误地执行Pull2Refresh操作。我怎样才能排序这个问题,因为滚动回顶部是一个问题。
这里是XML到片段与SwipeRefreshLayout
:
SwipeRefreshLayout不允许我向上滚动
<android.support.v4.widget.SwipeRefreshLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/swipe_refresh_layout_general"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.inc.automata.unamupdates.fragments.GeneralNewsFragment">
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/listViewGeneral">
</ListView>
</FrameLayout>
</android.support.v4.widget.SwipeRefreshLayout>
使用follwoing属性仍然不起作用 – Manny265
的ListView里面SwipeRefreshLayout,在FrameLayout中,不起作用? – maja89